Skip to content

Commit eee6328

Browse files
Fix incorrect comment in is_negative function
В функции is_negative комментарий "# Проверяем остаток от деления" не соответствует коду, который просто сравнивает число с нулём. Исправлено на: "# Проверяем, меньше ли число нуля"
1 parent cc86862 commit eee6328

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/45-logic/10-bool-type/ru/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ print(is_infant(0)) # => True
5454

5555
```python
5656
def is_negative(number: int) -> bool:
57-
# Проверяем остаток от деления
57+
# # Проверяем, меньше ли число нуля
5858
return number < 0
5959

6060
print(is_negative(-5)) # => True

0 commit comments

Comments
 (0)