From 773e1b74fbdb54d1e9f8decd11b3e1e1331cacfb Mon Sep 17 00:00:00 2001 From: YakovlevMaxim Date: Sun, 22 Oct 2023 18:54:56 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'SailBoat/SailBoat/Generics/SetGeneric?= =?UTF-8?q?.cs'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Исправил опечатки --- SailBoat/SailBoat/Generics/SetGeneric.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SailBoat/SailBoat/Generics/SetGeneric.cs b/SailBoat/SailBoat/Generics/SetGeneric.cs index a9b895e..db920fe 100644 --- a/SailBoat/SailBoat/Generics/SetGeneric.cs +++ b/SailBoat/SailBoat/Generics/SetGeneric.cs @@ -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) {