rfcs icon indicating copy to clipboard operation
rfcs copied to clipboard

RFCs 505 and 1574 contain contradictory information about method documentation

Open vigna opened this issue 9 months ago • 2 comments

In both RFCs, you can find the following phrase:

The summary line should be written in third person singular present indicative form. Basically, this means write "Returns" instead of "Return".

However, the only example given in the two RFCs is

// Wait for the main task to return, and set the process error code
// appropriately.

Personally I prefer third person. The examples should be amended.

vigna avatar Mar 01 '25 18:03 vigna

RFC's are a snapshot in time and not meant to be updated after the fact. If you want this documented, it should be documented in one of the places where living documentation lives like https://rust-lang.github.io/api-guidelines/documentation.html, https://doc.rust-lang.org/rustdoc/how-to-write-documentation.html or https://doc.rust-lang.org/book/ch14-02-publishing-to-crates-io.html#making-useful-documentation-comments.

bjorn3 avatar Mar 10 '25 11:03 bjorn3

I see. But that specific issue is only addressed there. I guess I can try a PR for a new item in one of those docs.

vigna avatar Mar 10 '25 11:03 vigna