исправил опечатки

This commit is contained in:
YakovlevMaxim 2023-10-23 16:37:21 +04:00
parent 773e1b74fb
commit 4ff5aeaad7

View File

@ -43,7 +43,7 @@ namespace SailBoat.Generics
} }
if (_places[position] == null) if (_places[position] == null)
{ {
_places[position] = car; _places[position] = boat;
return true; return true;
} }
int index = position; int index = position;
@ -53,7 +53,7 @@ namespace SailBoat.Generics
{ {
_places[i] = _places[i - 1]; _places[i] = _places[i - 1];
} }
_places[position] = car; _places[position] = boat;
return true; return true;
} }