Skip to content

Commit 85a949a

Browse files
authored
Merge pull request #1337 from newca12/fix-1201
Clarifies how to customize lib crate name
2 parents f7c2fc6 + 758278a commit 85a949a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/crates/lib.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ library.rlib
2525
```
2626

2727
Libraries get prefixed with "lib", and by default they get named after their
28-
crate file, but this default name can be overridden using the [`crate_name`
28+
crate file, but this default name can be overridden by passing
29+
the `--crate-name` option to `rustc` or by using the [`crate_name`
2930
attribute][crate-name].
3031

3132
[crate-name]: ../attribute/crate.md

0 commit comments

Comments
 (0)