Skip to content

Commit 17f9de3

Browse files
committed
Fix the reason for calling a file lib.rs
1 parent d670919 commit 17f9de3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3125,8 +3125,8 @@ pub fn add_three_times_four(x: int) -> int {
31253125
}
31263126
```
31273127

3128-
We're calling this file `lib.rs` because it has the same name as our project,
3129-
and so it's named this, by convention.
3128+
We're calling this file `lib.rs`, because Cargo uses that filename as the crate
3129+
root by convention.
31303130

31313131
We'll then need to use this crate in our `src/main.rs`:
31323132

0 commit comments

Comments
 (0)