You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The directive needs to be on a separate line but further documentation can be added in other lines. The :ditto: directive is simply replaced by the content of the previous doc comment.
However this does not seem to be working (anymore?):
# Returns the number of items within this collection.defsize; end# :ditto:## Some information specific to this method.defcount; end
Produces:
The text was updated successfully, but these errors were encountered:
https://crystal-lang.org/reference/syntax_and_semantics/documenting_code.html#ditto mentions that:
However this does not seem to be working (anymore?):
Produces:
The text was updated successfully, but these errors were encountered: