Skip to content

Commit f9bfebb

Browse files
committed
Clarified naming convention for Cargo
Added a sentence that tells the user that using main.rs and/or lib.rs is required for Cargo.
1 parent ef72938 commit f9bfebb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/doc/trpl/hello-cargo.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ $ mv main.rs src/main.rs
3333
```
3434

3535
Note that since we're creating an executable, we used `main.rs`. If we
36-
want to make a library instead, we should use `lib.rs`.
36+
want to make a library instead, we should use `lib.rs`. This convention is required
37+
for Cargo to successfully compile our projects.
3738
Custom file locations for the entry point can be specified
3839
with a [`[[lib]]` or `[[bin]]`][crates-custom] key in the TOML file described below.
3940

0 commit comments

Comments
 (0)