From 4ff5aeaad71e5774681113904bdb5303be2ef0fd Mon Sep 17 00:00:00 2001 From: YakovlevMaxim Date: Mon, 23 Oct 2023 16:37:21 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BE=D0=BF=D0=B5=D1=87=D0=B0=D1=82=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SailBoat/SailBoat/Generics/SetGeneric.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SailBoat/SailBoat/Generics/SetGeneric.cs b/SailBoat/SailBoat/Generics/SetGeneric.cs index db920fe..578de1f 100644 --- a/SailBoat/SailBoat/Generics/SetGeneric.cs +++ b/SailBoat/SailBoat/Generics/SetGeneric.cs @@ -43,7 +43,7 @@ namespace SailBoat.Generics } if (_places[position] == null) { - _places[position] = car; + _places[position] = boat; return true; } int index = position; @@ -53,7 +53,7 @@ namespace SailBoat.Generics { _places[i] = _places[i - 1]; } - _places[position] = car; + _places[position] = boat; return true; }