diff options
| author | Rageking8 <tomleetyt@gmail.com> | 2022-09-27 16:08:04 +0800 |
|---|---|---|
| committer | Rageking8 <tomleetyt@gmail.com> | 2022-09-29 00:34:31 +0800 |
| commit | 2ee2ffa9a7266b9a3b3b9fe599fde651cdd94ba6 (patch) | |
| tree | 7784376bc55e75c6599eed0535ffc7dae52652ce /compiler/rustc_parse/src/parser | |
| parent | 09ae7846a272a500ff7145255f0de5556c0b8949 (diff) | |
| download | rust-2ee2ffa9a7266b9a3b3b9fe599fde651cdd94ba6.tar.gz rust-2ee2ffa9a7266b9a3b3b9fe599fde651cdd94ba6.zip | |
improve E0585 help
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/item.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/parser/item.rs b/compiler/rustc_parse/src/parser/item.rs index b7454d7bfc1..c8a8e00b1fa 100644 --- a/compiler/rustc_parse/src/parser/item.rs +++ b/compiler/rustc_parse/src/parser/item.rs @@ -760,8 +760,8 @@ impl<'a> Parser<'a> { ) .span_label(self.token.span, "this doc comment doesn't document anything") .help( - "doc comments must come before what they document, maybe a \ - comment was intended with `//`?", + "doc comments must come before what they document, if a comment was \ + intended use `//`", ) .emit(); self.bump(); |
