From 39b61e5f44e04a0721eed01b606c7ff05e3fe16e Mon Sep 17 00:00:00 2001 From: Armen Khurshudov <255917737+ArmenKhurshudov@users.noreply.github.com> Date: Thu, 16 Apr 2026 17:46:58 -0500 Subject: [PATCH] Fix comment to clarify last character index calculation --- .../300-method-definition-parameters/ru/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/40-methods-definition/300-method-definition-parameters/ru/README.md b/modules/40-methods-definition/300-method-definition-parameters/ru/README.md index af4339b..b67b623 100644 --- a/modules/40-methods-definition/300-method-definition-parameters/ru/README.md +++ b/modules/40-methods-definition/300-method-definition-parameters/ru/README.md @@ -41,7 +41,7 @@ App.getLastChar(name2); // 'o' ```java class App { public static char getLastChar(String str) { - // Вычисляем индекс последнего символа как длина строки, то есть 1 + // Вычисляем индекс последнего символа как длина строки минус 1 return str.charAt(str.length() - 1); } }