From fba7a49dad057e75a9dc0fa94dec913543f955d9 Mon Sep 17 00:00:00 2001 From: Jean Vintache Date: Wed, 13 Nov 2019 23:51:23 +0100 Subject: [PATCH] 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. --- src/crates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crates.md b/src/crates.md index 4c46e553cd..b954eec6cd 100644 --- a/src/crates.md +++ b/src/crates.md @@ -9,4 +9,4 @@ individually, only crates get compiled. A crate can be compiled into a binary or into a library. By default, `rustc` will produce a binary from a crate. This behavior can be overridden by passing -the `--crate-type` flag to `rustc`. +the `--crate-type` flag to `lib`.