auto merge of #18140 : JelteF/rust-1/guide-fix, r=cmr
The reason given didn't make any sense when I read it when reading through the docs. I think this is more clear. Please let me know it is also more correct.
This commit is contained in:
commit
e197a2b0ac
@ -3144,8 +3144,8 @@ pub fn add_three_times_four(x: int) -> int {
|
||||
}
|
||||
```
|
||||
|
||||
We're calling this file `lib.rs` because it has the same name as our project,
|
||||
and so it's named this, by convention.
|
||||
We're calling this file `lib.rs`, because Cargo uses that filename as the crate
|
||||
root by convention.
|
||||
|
||||
We'll then need to use this crate in our `src/main.rs`:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user