Skip to content

Commit ca61881

Browse files
committed
Add --lib option to the second cargo new invocation
The default option for `cargo new` was changed from `--lib` to `--bin` in Cargo 0.26.0/Rust 1.25.0. Fixes: #10
1 parent 562d938 commit ca61881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

second-edition/src/ch14-03-cargo-workspaces.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ members = [
137137
それから、`add-one`という名前のライブラリクレートを生成してください:
138138

139139
```text
140-
$ cargo new add-one
140+
$ cargo new add-one --lib
141141
Created library `add-one` project
142142
```
143143

0 commit comments

Comments
 (0)