Skip to content

Commit d7d29e9

Browse files
docs: formatted Doc/tutorial/controlflow.rst
Co-authored-by: Sergey B Kirpichev <[email protected]>
1 parent a0b4f25 commit d7d29e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/tutorial/controlflow.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,8 @@ scope::
998998
>>> f(1)
999999
43
10001000

1001-
The above example uses a lambda expression to return a function. Another use is to pass a small function as an argument. For instance, :meth:`list.sort`
1001+
The above example uses a lambda expression to return a function. Another use
1002+
is to pass a small function as an argument. For instance, :meth:`list.sort`
10021003
takes a sorting key function *key* which can be a lambda function::
10031004

10041005
>>> pairs = [(1, 'one'), (2, 'two'), (3, 'three'), (4, 'four')]

0 commit comments

Comments
 (0)