-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.T-rustdocRelevant to rustdoc team, which will review and decide on the RFC.Relevant to rustdoc team, which will review and decide on the RFC.
Description
Currently if you use the common documentation pattern:
enum Foo {
Bar, /// Bar is a value
Baz, /// This foo is a baz
Quux
}
rustdoc will apply the documentation strings to the wrong values (specifically, to the next value after the intended one). Fortunately an error is generated if the last entry in the enum is documented (Quux
in this example), but it's also fairly common for the last value to be something like Unknown
or Invalid
that may not be documented.
It would be nice if this same-line documentation style were supported, as it makes a lot of sense for simple enum values that only have short docs.
Rufflewind, nglgzz, johnyukon, bvargin-dev, xiaoas and 1 more
Metadata
Metadata
Assignees
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.T-rustdocRelevant to rustdoc team, which will review and decide on the RFC.Relevant to rustdoc team, which will review and decide on the RFC.