]> git.lizzy.rs Git - rust.git/commitdiff
Update tutorial.md : rename pkgid to crate_id
authoreliovir <eliovir@gmail.com>
Sat, 28 Dec 2013 09:32:03 +0000 (10:32 +0100)
committereliovir <eliovir@gmail.com>
Sat, 28 Dec 2013 09:32:03 +0000 (10:32 +0100)
doc/tutorial.md

index 957381ddd7a18a568eb42560bd4469beb016264c..ccc7525b8d5eb506cfade30007b4a9a2c096e8ac 100644 (file)
@@ -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() {}