diff --git a/logtalk.html.markdown b/logtalk.html.markdown
index bff52cae..5a52bd3c 100644
--- a/logtalk.html.markdown
+++ b/logtalk.html.markdown
@@ -182,7 +182,7 @@ A message is valid if the corresponding predicate is declared (and the sender is
```logtalk
:- object(foo).
- :- public(bar).
+ :- public(bar/0).
:- end_object.
```