Skip to content

Commit fba7a49

Browse files
authored
crates: fix suggested value for --crate-type flag
In order to compile to a library, suggest using `lib` instead of `rustc`, which is not a valid `--crate-type` value.
1 parent dcee312 commit fba7a49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ individually, only crates get compiled.
99

1010
A crate can be compiled into a binary or into a library. By default, `rustc`
1111
will produce a binary from a crate. This behavior can be overridden by passing
12-
the `--crate-type` flag to `rustc`.
12+
the `--crate-type` flag to `lib`.

0 commit comments

Comments
 (0)