mirror of https://github.com/python/cpython
Use the more conventional "self" as the name of the self parameter in an
example. It actually confused a reader.
This commit is contained in:
parent
0c209047ba
commit
88e66254f9
|
@ -3429,7 +3429,7 @@ this:
|
|||
class MyClass:
|
||||
"A simple example class"
|
||||
i = 12345
|
||||
def f(x):
|
||||
def f(self):
|
||||
return 'hello world'
|
||||
\end{verbatim}
|
||||
|
||||
|
|
Loading…
Reference in New Issue