From 743d39293f8f480cd4104a4de1ec659bc0e3a955 Mon Sep 17 00:00:00 2001 From: eliovir Date: Sat, 28 Dec 2013 10:32:03 +0100 Subject: [PATCH] Update tutorial.md : rename pkgid to crate_id --- doc/tutorial.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/tutorial.md b/doc/tutorial.md index 957381ddd7a..ccc7525b8d5 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -3071,7 +3071,7 @@ Therefore, if you plan to compile your crate as a library, you should annotate i # #[crate_type = "lib"]; // Package ID -#[pkgid = "farm#2.5"]; +#[crate_id = "farm#2.5"]; // ... # fn farm() {} @@ -3095,7 +3095,7 @@ or setting the crate type (library or executable) explicitly: // ... // This crate is a library ("bin" is the default) -#[pkgid = "farm#2.5"]; +#[crate_id = "farm#2.5"]; #[crate_type = "lib"]; // Turn on a warning @@ -3116,7 +3116,7 @@ We define two crates, and use one of them as a library in the other. ~~~~ // world.rs -#[pkgid = "world#0.42"]; +#[crate_id = "world#0.42"]; # extern mod extra; pub fn explore() -> &'static str { "world" } # fn main() {}