Skip to content

Commit 5cd0de3

Browse files
AlexWaygoodisgin01
andauthored
Fix minor punctuation errors (#16228)
Co-authored-by: eqsdxr <rxdsqe@gmail.com>
1 parent ed9c18d commit 5cd0de3

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

BREAKING_CHANGES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ This change only affects those using Ruff under its default rule set. Users that
209209

210210
### Remove support for emoji identifiers ([#7212](https://github.com/astral-sh/ruff/pull/7212))
211211

212-
Previously, Ruff supported the non-standard compliant emoji identifiers e.g. `📦 = 1`.
213-
We decided to remove this non-standard language extension, and Ruff now reports syntax errors for emoji identifiers in your code, the same as CPython.
212+
Previously, Ruff supported non-standards-compliant emoji identifiers such as `📦 = 1`.
213+
We decided to remove this non-standard language extension. Ruff now reports syntax errors for invalid emoji identifiers in your code, the same as CPython.
214214

215215
### Improved GitLab fingerprints ([#7203](https://github.com/astral-sh/ruff/pull/7203))
216216

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ cargo benchmark
526526
#### Benchmark-driven Development
527527
528528
Ruff uses [Criterion.rs](https://bheisler.github.io/criterion.rs/book/) for benchmarks. You can use
529-
`--save-baseline=<name>` to store an initial baseline benchmark (e.g. on `main`) and then use
529+
`--save-baseline=<name>` to store an initial baseline benchmark (e.g., on `main`) and then use
530530
`--benchmark=<name>` to compare against that benchmark. Criterion will print a message telling you
531531
if the benchmark improved/regressed compared to that baseline.
532532
@@ -678,9 +678,9 @@ utils with it:
678678
23 Newline 24
679679
```
680680

681-
- `cargo dev print-cst <file>`: Print the CST of a python file using
681+
- `cargo dev print-cst <file>`: Print the CST of a Python file using
682682
[LibCST](https://github.com/Instagram/LibCST), which is used in addition to the RustPython parser
683-
in Ruff. E.g. for `if True: pass # comment` everything including the whitespace is represented:
683+
in Ruff. For example, for `if True: pass # comment`, everything, including the whitespace, is represented:
684684

685685
```text
686686
Module {

docs/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ making changes to code, even for seemingly trivial fixes. If a "safe" fix breaks
639639
Ruff's color output is powered by the [`colored`](https://crates.io/crates/colored) crate, which
640640
attempts to automatically detect whether the output stream supports color. However, you can force
641641
colors off by setting the `NO_COLOR` environment variable to any value (e.g., `NO_COLOR=1`), or
642-
force colors on by setting `FORCE_COLOR` to any non-empty value (e.g. `FORCE_COLOR=1`).
642+
force colors on by setting `FORCE_COLOR` to any non-empty value (e.g., `FORCE_COLOR=1`).
643643

644644
[`colored`](https://crates.io/crates/colored) also supports the `CLICOLOR` and `CLICOLOR_FORCE`
645645
environment variables (see the [spec](https://bixense.com/clicolors/)).

docs/preview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ setting in your configuration file:
177177
```
178178

179179
In our previous example, `--select` with `ALL` `HYP`, `HYP0`, or `HYP00` would not enable `HYP001`. Each preview
180-
rule will need to be selected with its exact code, e.g. `--select ALL,HYP001`.
180+
rule will need to be selected with its exact code: for example, `--select ALL,HYP001`.
181181

182182
If preview mode is not enabled, this setting has no effect.
183183

0 commit comments

Comments
 (0)