Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:ditto: does not copy if additional lines are present #11332

Closed
Blacksmoke16 opened this issue Oct 17, 2021 · 0 comments · Fixed by #11336
Closed

:ditto: does not copy if additional lines are present #11332

Blacksmoke16 opened this issue Oct 17, 2021 · 0 comments · Fixed by #11336
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:tools:docs-generator

Comments

@Blacksmoke16
Copy link
Member

Blacksmoke16 commented Oct 17, 2021

https://crystal-lang.org/reference/syntax_and_semantics/documenting_code.html#ditto mentions that:

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.
def size; end

# :ditto:
#
# Some information specific to this method.
def count; end

Produces:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:tools:docs-generator
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants