From 976bc121d57cf11e278439f127f2bcd06e9ab3f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Br=C3=A1ulio=20Bezerra?= Date: Sat, 14 Oct 2017 14:05:15 -0300 Subject: [PATCH] Extern crate grammar --- src/items/extern-crates.md | 6 ++++++ 1 file changed, 6 insertions(+) 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