diff --git a/src/items/extern-crates.md b/src/items/extern-crates.md index e12e37495..2bc20f9e1 100644 --- a/src/items/extern-crates.md +++ b/src/items/extern-crates.md @@ -1,5 +1,9 @@ # Extern crate declarations +> **Syntax:** +> _ExternCrate_ : +>    `extern` `crate` [IDENTIFIER] (`as` [IDENTIFIER])? `;` + An _`extern crate` declaration_ specifies a dependency on an external crate. The external crate is then bound into the declaring scope as the `ident` provided in the `extern_crate_decl`. @@ -35,3 +39,5 @@ extern crate hello_world; // hyphen replaced with an underscore ``` [RFC 940]: https://github.com/rust-lang/rfcs/blob/master/text/0940-hyphens-considered-harmful.md + +[IDENTIFIER]: identifiers.html