Skip to content

Commit 02d68a8

Browse files
committed
Changed summary line of docstring to follow PEP 0257 - update
Quoting https://www.python.org/dev/peps/pep-0257/#one-line-docstrings "The docstring is a phrase ending in a period. It prescribes the function or method's effect as a command ("Do this", "Return that"), not as a description; e.g. don't write "Returns the pathname ...".
1 parent 6b4d013 commit 02d68a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/writing/tests.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ A simple doctest in a function:
116116
.. code-block:: python
117117
118118
def square(x):
119-
"""Square x.
119+
"""Return the square of x.
120120
121121
>>> square(2)
122122
4

0 commit comments

Comments
 (0)