mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 14:50:19 +00:00
Fixed example docstring
This commit is contained in:
@@ -104,7 +104,7 @@ In Python, *docstrings* describe modules, classes, and functions:
|
||||
.. code-block:: python
|
||||
|
||||
def square_and_rooter(x):
|
||||
"""Returns the square root of self times self."""
|
||||
"""Return the square root of self times self."""
|
||||
...
|
||||
|
||||
In general, follow the comment section of :pep:`8#comments` (the "Python Style
|
||||
|
||||
Reference in New Issue
Block a user