mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 12:39:42 +00:00
Update traits.md
This commit is contained in:
@ -143,8 +143,8 @@ fn main() {
|
|||||||
let _one_second = Seconds(1);
|
let _one_second = Seconds(1);
|
||||||
|
|
||||||
println!("One second looks like: {:?}", _one_second);
|
println!("One second looks like: {:?}", _one_second);
|
||||||
let _this_is_true = (_one_second == _one_second);
|
let _this_is_true = _one_second == _one_second;
|
||||||
let _this_is_true = (_one_second > _one_second);
|
let _this_is_true = _one_second > _one_second;
|
||||||
|
|
||||||
let foot = Inches(12);
|
let foot = Inches(12);
|
||||||
|
|
||||||
@ -467,4 +467,4 @@ fn main() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it :)
|
> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it :)
|
||||||
|
Reference in New Issue
Block a user