about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorSam Robinson-Adams <samziz@me.com>2022-05-18 15:10:18 +0100
committerGitHub <noreply@github.com>2022-05-18 15:10:18 +0100
commitd8ef340d997a0f9d29f2372eda95a9d11bb0fcb8 (patch)
tree5a7b8548605747a8688a4ed0ddc5544ab77919d4 /compiler/rustc_mir_transform/src/coverage/debug.rs
parente5732a21711e7cefa6eb22e1790406b269d6197a (diff)
downloadrust-d8ef340d997a0f9d29f2372eda95a9d11bb0fcb8.tar.gz
rust-d8ef340d997a0f9d29f2372eda95a9d11bb0fcb8.zip
Fix rusty grammar in `std::error::Reporter` docs
I initially saw "print's" instead of "prints" at the start of the doc comment for `std::error::Reporter`, while reading the docs for that type. Then I figured 'probably more where that came from', so, as well as correcting the foregoing to "prints", I've patched up these three minor solecisms (well, two [types](https://en.wikipedia.org/wiki/Type%E2%80%93token_distinction), three [tokens](https://en.wikipedia.org/wiki/Type%E2%80%93token_distinction)):

- One use of the indicative which should be subjunctive - indeed the sentence immediately following it, which mirrors its structure, _does_ use the subjunctive ([L871](https://github.com/rust-lang/rust/blob/master/library/std/src/error.rs?plain=1#L871)). Replaced with the subjunctive.
- Two separate clauses joined with commas ([L975](https://github.com/rust-lang/rust/blob/master/library/std/src/error.rs?plain=1#L975), [L1023](https://github.com/rust-lang/rust/blob/master/library/std/src/error.rs?plain=1#L1023)). Replaced the first with a semicolon and the second with a period. Admittedly those judgements are pretty much 100% subjective, based on my sense of how the sentences flowed into each other (though ofc the _replacement of the comma itself_ is not subjective or opinion-based).

I know this is silly and finicky, but I hope it helps tidy up the docs a bit for future readers!
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions