mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-27 20:35:09 +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 `>`/`>=`.
|
Use `<`/`<=`, avoid `>`/`>=`.
|
||||||
Less-then comparisons are more intuitive, they correspond spatially to [real line](https://en.wikipedia.org/wiki/Real_line)
|
Less-then comparisons are more intuitive, they correspond spatially to [real line](https://en.wikipedia.org/wiki/Real_line)
|
||||||
|
|
||||||
```rs
|
```rust
|
||||||
// Good
|
// Good
|
||||||
assert!(lo <= x && x <= hi);
|
assert!(lo <= x && x <= hi);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue