diff --git a/docs/advanced/classes.rst b/docs/advanced/classes.rst index f7db3eadf..f4efc68f8 100644 --- a/docs/advanced/classes.rst +++ b/docs/advanced/classes.rst @@ -159,7 +159,7 @@ Here is an example: class Dachshund(Dog): def __init__(self, name): - Dog.__init__(self) # Without this, undefined behavior may occur if the C++ portions are referenced. + Dog.__init__(self) # Without this, a TypeError is raised. self.name = name def bark(self): return "yap!"