mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 05:38:46 +00:00
minor
This commit is contained in:
parent
76c68dbefe
commit
5359e8f742
1 changed files with 1 additions and 1 deletions
|
@ -401,7 +401,7 @@ fn foo() -> Option<Bar> {
|
|||
Use `<`/`<=`, avoid `>`/`>=`.
|
||||
Less-then comparisons are more intuitive, they correspond spatially to [real line](https://en.wikipedia.org/wiki/Real_line)
|
||||
|
||||
```rs
|
||||
```rust
|
||||
// Good
|
||||
assert!(lo <= x && x <= hi);
|
||||
|
||||
|
|
Loading…
Reference in a new issue