Skip to content

Commit a6dd871

Browse files
committed
Fixing typo, [[lib]] to [lib]
Cargo expects `lib` to be table, not an array of tables (only single lib per project).
1 parent 4e14ef0 commit a6dd871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/trpl/hello-cargo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Note that since we're creating an executable, we used `main.rs`. If we
3636
want to make a library instead, we should use `lib.rs`. This convention is required
3737
for Cargo to successfully compile our projects, but it can be overridden if we wish.
3838
Custom file locations for the entry point can be specified
39-
with a [`[[lib]]` or `[[bin]]`][crates-custom] key in the TOML file described below.
39+
with a [`[lib]` or `[[bin]]`][crates-custom] key in the TOML file.
4040

4141
[crates-custom]: http://doc.crates.io/manifest.html#configuring-a-target
4242

0 commit comments

Comments
 (0)