]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Repair example code in doc string.
authorJeremy Hylton <jeremy@alum.mit.edu>
Thu, 11 Jul 2002 20:22:11 +0000 (20:22 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Thu, 11 Jul 2002 20:22:11 +0000 (20:22 +0000)
Bug fix candiadte.

Demo/metaclasses/Eiffel.py

index d9c8a9a0c7f95150cc13dd0cf912bedec81a707a..68eb1cd21db1434556d36d2e81b109c6a215853d 100644 (file)
@@ -28,7 +28,7 @@ post-condition with that defined in the derived class', for example:
 
 class D(C):
     def m1(self, arg):
-        return whatever**2
+        return arg**2
     def m1_post(self, Result, arg):
         C.m1_post(self, Result, arg)
         assert Result < 100