Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.py #47

Merged
merged 1 commit into from Nov 28, 2019
Merged

Update index.py #47

merged 1 commit into from Nov 28, 2019

Conversation

Kulabuhov-Alexey
Copy link
Contributor

В последнем условии:
"Длина подстроки в сумме с заданным индексом выходит за границу всей строки"
граничный индекс строки должен быть равен ее длине уменьшенной на 1.

@astynax
Copy link
Contributor

astynax commented Nov 28, 2019

Я тут подумал: вообще можно было вместо - 1 сменить проверку c > на >=. Был бы тот же результат...

@astynax astynax merged commit f5a0e7b into hexlet-basics:master Nov 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants