This commit is contained in:
Aleksey Kladov 2020-10-07 13:11:33 +02:00
parent 76c68dbefe
commit 5359e8f742

View file

@ -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);