Skip to content

Commit 90d3cc3

Browse files
committed
Unwrap crate_name
1 parent 9571d4d commit 90d3cc3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/crates-and-source-files.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,14 @@ r[crate.crate_name]
139139
## The `crate_name` attribute
140140

141141
r[crate.crate_name.general]
142-
The *`crate_name` [attribute]* may be applied at the crate level to specify the
143-
name of the crate with the [MetaNameValueStr] syntax.
142+
The *`crate_name` [attribute]* may be applied at the crate level to specify the name of the crate with the [MetaNameValueStr] syntax.
144143

145144
```rust
146145
#![crate_name = "mycrate"]
147146
```
148147

149148
r[crate.crate_name.restriction]
150-
The crate name must not be empty, and must only contain [Unicode alphanumeric]
151-
or `_` (U+005F) characters.
149+
The crate name must not be empty, and must only contain [Unicode alphanumeric] or `_` (U+005F) characters.
152150

153151
[^phase-distinction]: This distinction would also exist in an interpreter.
154152
Static checks like syntactic analysis, type checking, and lints should

0 commit comments

Comments
 (0)