Skip to content

Commit 5caee7f

Browse files
committed
Fixed error
1 parent c5ea695 commit 5caee7f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/doc/manifest.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,10 +459,13 @@ You can run individual executable examples with the command `cargo run --example
459459

460460
Specify `crate-type` to make an example be compiled as a library:
461461
```toml
462-
[[example.foo]]
462+
[[example]]
463+
name = "foo"
463464
crate-type = ["staticlib"]
464465
```
465466

467+
You can build individual library examples with the command `cargo build --example <example-name>`.
468+
466469
# Tests
467470

468471
When you run `cargo test`, Cargo will:

0 commit comments

Comments
 (0)