diff --git a/docs/tutorial.md b/docs/tutorial.md index 14ed8fe398053..0c1573c3facca 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -22,7 +22,7 @@ import os def sum_even_numbers(numbers: Iterable[int]) -> int: - """Given a sequence of integers, return the sum of all even numbers in the sequence.""" + """Given an iterable of integers, return the sum of all even numbers in the iterable.""" return sum(num for num in numbers if num % 2 == 0) ``` @@ -61,7 +61,7 @@ Running `git diff` shows the following: - def sum_even_numbers(numbers: Iterable[int]) -> int: - """Given a sequence of integers, return the sum of all even numbers in the sequence.""" + """Given an iterable of integers, return the sum of all even numbers in the iterable.""" return sum(num for num in numbers if num % 2 == 0) ``` @@ -184,7 +184,7 @@ from typing import Iterable # noqa: UP035 def sum_even_numbers(numbers: Iterable[int]) -> int: - """Given a sequence of integers, return the sum of all even numbers in the sequence.""" + """Given an iterable of integers, return the sum of all even numbers in the iterable.""" return sum(num for num in numbers if num % 2 == 0) ``` @@ -206,7 +206,7 @@ from typing import Iterable def sum_even_numbers(numbers: Iterable[int]) -> int: - """Given a sequence of integers, return the sum of all even numbers in the sequence.""" + """Given an iterable of integers, return the sum of all even numbers in the iterable.""" return sum(num for num in numbers if num % 2 == 0) ```