From 3e1c67e86660c17a9860470947bf460f298e5b5e Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 14 Dec 2008 17:26:04 +0000 Subject: [PATCH] fix missing bracket --- Doc/howto/functional.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/howto/functional.rst b/Doc/howto/functional.rst index 792344dac2c..b717f80bf05 100644 --- a/Doc/howto/functional.rst +++ b/Doc/howto/functional.rst @@ -728,7 +728,7 @@ indexes at which certain conditions are met:: if line.strip() == '': print 'Blank line at line #%i' % i -``sorted(iterable, [cmp=None], [key=None], [reverse=False)`` collects all the +``sorted(iterable, [cmp=None], [key=None], [reverse=False])`` collects all the elements of the iterable into a list, sorts the list, and returns the sorted result. The ``cmp``, ``key``, and ``reverse`` arguments are passed through to the constructed list's ``.sort()`` method. ::