Skip to content

Commit be4237f

Browse files
author
Juuso Takalainen
committed
doc: fix reference to non-existing method
It's confusing that up-to-date documentation (https://www.pymunk.org/en/latest/pymunk.html#pymunk.Poly.collision_type) references add_collision_handler, which seems to be removed (also this isn't found in changelogs! Maybe happened in 7.0.0?) `on_collision` seems to document collision_types
1 parent d444542 commit be4237f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymunk/shapes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def collision_type(self) -> int:
135135
136136
Defaults to 0.
137137
138-
See the :py:meth:`Space.add_collision_handler` function for more
138+
See the :py:meth:`Space.on_collision` function for more
139139
information on when to use this property.
140140
"""
141141
return cp.cpShapeGetCollisionType(self._shape)

0 commit comments

Comments
 (0)