Изменил(а) на 'SailBoat/SailBoat/Generics/SetGeneric.cs'
Исправил опечатки
This commit is contained in:
parent
bad7f562ec
commit
773e1b74fb
@ -18,7 +18,7 @@ namespace SailBoat.Generics
|
||||
_places = new T[Count];
|
||||
}
|
||||
|
||||
public int Insert(T car)
|
||||
public int Insert(T boat)
|
||||
{
|
||||
int index = 0;
|
||||
while (_places[index] != null) {
|
||||
@ -31,11 +31,11 @@ namespace SailBoat.Generics
|
||||
_places[index] = _places[index - 1];
|
||||
index--;
|
||||
}
|
||||
_places[0] = car;
|
||||
_places[0] = boat;
|
||||
return 0;
|
||||
}
|
||||
|
||||
public bool Insert(T car, int position)
|
||||
public bool Insert(T boat, int position)
|
||||
{
|
||||
if (position < 0 || position >= Count)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user