Skip to content

Commit e17efcb

Browse files
authored
Merge pull request rust-lang#144 from brauliobz/extern_crates
Extern crate grammar
2 parents 796eeab + 976bc12 commit e17efcb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/items/extern-crates.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Extern crate declarations
22

3+
> **<sup>Syntax:<sup>**
4+
> _ExternCrate_ :
5+
> &nbsp;&nbsp; `extern` `crate` [IDENTIFIER]&nbsp;(`as` [IDENTIFIER])<sup>?</sup> `;`
6+
37
An _`extern crate` declaration_ specifies a dependency on an external crate.
48
The external crate is then bound into the declaring scope as the `ident`
59
provided in the `extern_crate_decl`.
@@ -35,3 +39,5 @@ extern crate hello_world; // hyphen replaced with an underscore
3539
```
3640

3741
[RFC 940]: https://github.com/rust-lang/rfcs/blob/master/text/0940-hyphens-considered-harmful.md
42+
43+
[IDENTIFIER]: identifiers.html

0 commit comments

Comments
 (0)