Skip to content

Commit 417e19f

Browse files
committed
fix reference to crate_name
1 parent 180cf1b commit 417e19f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/attribute/crate.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ The `crate_type` attribute can be used to tell the compiler whether a crate is
44
a binary or a library (and even which type of library), and the `crate_name`
55
attribute can be used to set the name of the crate.
66

7-
However, it is important to note that the `crate_type` attribute has **no**
8-
effect whatsoever when using Cargo, the Rust package manager. Since Cargo is
9-
used for the majority of Rust projects, this means real-world uses of
10-
`crate-type` are relatively limited.
7+
However, it is important to note that both the `crate_type` and `crate_name`
8+
attributes have **no** effect whatsoever when using Cargo, the Rust package
9+
manager. Since Cargo is used for the majority of Rust projects, this means
10+
real-world uses of `crate-type` and `crate_name` are relatively limited.
1111

1212
```rust,editable
1313
// This crate is a library

0 commit comments

Comments
 (0)