-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
docstrings for inner constructors are ignored #16730
Comments
Dup of #14962 since the docstring isn't toplevel and so needs to use
Perhaps we should consider extending where |
Would be nice to have it automatically on the inner constructors. They are indeed methods on the global scope. |
It seems the ┌ Warning: Deprecated syntax `@doc call with ->`.
│ Use `a line break` instead.
└ @ none:24 Could this issue be fixed before removing the deprecated method? |
At the moment, in struct Foo
@doc "best inner constructor ever"
Foo() = new()
end works fine. |
Currently the help for `Model` doesn't show the documentation for the inner constructor `Model{Missing}`, due to JuliaLang/julia#16730 . This PR fixes it using the `@doc` workaround mentioned in that issue. With this PR, the `Model{Missing}` doc shows up at the top, before the `struct Model` doc. I hope it's not a problem. Co-authored-by: Hong Ge <hg344@cam.ac.uk>
Currently the help for `Model` doesn't show the documentation for the inner constructor `Model{Missing}`, due to JuliaLang/julia#16730 . This PR fixes it using the `@doc` workaround mentioned in that issue. With this PR, the `Model{Missing}` doc shows up at the top, before the `struct Model` doc. I hope it's not a problem. Co-authored-by: Hong Ge <hg344@cam.ac.uk>
This is still an issue in Julia v1.7 |
I believe this is still an issue as of 1.9 and should be fixed. Closing as duplicate of #14962. |
cc @MichaelHatherly
The text was updated successfully, but these errors were encountered: