diff --git a/README.md b/README.md index 3cddf94..592e337 100644 --- a/README.md +++ b/README.md @@ -874,7 +874,7 @@ Duck Types ### Comparable * **If eq() method is not overridden, it returns `'id(self) == id(other)'`, which is the same as `'self is other'`.** * **That means all objects compare not equal by default.** -* **Only object on the left side of a comparison has eq() called, unless it returns 'NotImplemented', in which case the right object is consulted.** +* **Only left side object has eq() method called, unless it returns 'NotImplemented', in which case the right object is consulted.** ```python class MyComparable: diff --git a/index.html b/index.html index 8824449..f1a8b9a 100644 --- a/index.html +++ b/index.html @@ -779,7 +779,7 @@ creature = Creature()
'id(self) == id(other)'
, which is the same as 'self is other'
.class MyComparable:
def __init__(self, a):