mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Merge pull request #752 from sidney-pham/master
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