diff options
| author | bors <bors@rust-lang.org> | 2025-02-10 08:46:37 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-02-10 08:46:37 +0000 |
| commit | 80c091958f05e573433df974f8d2f2bc3a3eadfb (patch) | |
| tree | 98c4bdc4f082193262b79efe26c3b39049d16772 /src/tools/rust-analyzer/docs/dev | |
| parent | c03c38d5c2368cd2aa0e056dba060b94fc747f4e (diff) | |
| parent | 8fd713b7d3bc773b0911518c4e4ee7f1ac284220 (diff) | |
| download | rust-80c091958f05e573433df974f8d2f2bc3a3eadfb.tar.gz rust-80c091958f05e573433df974f8d2f2bc3a3eadfb.zip | |
Auto merge of #136803 - lnicola:sync-from-ra, r=lnicola
Subtree update of `rust-analyzer` r? `@ghost`
Diffstat (limited to 'src/tools/rust-analyzer/docs/dev')
| -rw-r--r-- | src/tools/rust-analyzer/docs/dev/style.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/rust-analyzer/docs/dev/style.md b/src/tools/rust-analyzer/docs/dev/style.md index 4c5299bde3e..51b60ab2ebb 100644 --- a/src/tools/rust-analyzer/docs/dev/style.md +++ b/src/tools/rust-analyzer/docs/dev/style.md @@ -873,7 +873,7 @@ Use `anyhow::format_err!` rather than `anyhow::anyhow`. **Rationale:** consistent, boring, avoids stuttering. There's no specific guidance on the formatting of error messages, see [anyhow/#209](https://github.com/dtolnay/anyhow/issues/209). -Do not end error and context messages with `.` though. +Do not end error and context messages with `.` though. ## Early Returns @@ -1172,7 +1172,7 @@ MergeBehavior::Last => { **Rationale:** writing a sentence (or maybe even a paragraph) rather just "a comment" creates a more appropriate frame of mind. It tricks you into writing down more of the context you keep in your head while coding. -For `.md` and `.adoc` files, prefer a sentence-per-line format, don't wrap lines. +For `.md` files prefer a sentence-per-line format, don't wrap lines. If the line is too long, you want to split the sentence in two :-) **Rationale:** much easier to edit the text and read the diff, see [this link](https://asciidoctor.org/docs/asciidoc-recommended-practices/#one-sentence-per-line). |
