Skip to content

Commit 758278a

Browse files
committed
Clarifies how to customize lib crate name
1 parent f7c2fc6 commit 758278a

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)