Fix the reason for calling a file lib.rs

This commit is contained in:
Jelte Fennema 2014-11-23 14:43:22 +01:00
parent d670919aa4
commit 17f9de387a

View File

@ -3125,8 +3125,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`: