Skip to content

Commit

Permalink
Cosmetic edit
Browse files Browse the repository at this point in the history
Use command form like in docstrings
  • Loading branch information
merwok authored Oct 12, 2017
1 parent 8c8e4b4 commit 9b806c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ are always available. They are listed here in alphabetical order.

.. decorator:: classmethod

Transforms a method into a class method.
Transform a method into a class method.

A class method receives the class as implicit first argument, just like an
instance method receives the instance. To declare a class method, use this
Expand Down Expand Up @@ -1400,7 +1400,7 @@ are always available. They are listed here in alphabetical order.

.. decorator:: staticmethod

Transforms a method into a static method.
Transform a method into a static method.

A static method does not receive an implicit first argument. To declare a static
method, use this idiom::
Expand Down

0 comments on commit 9b806c1

Please sign in to comment.