Skip to content

Commit

Permalink
Update tutorial.md : rename pkgid to crate_id
Browse files Browse the repository at this point in the history
  • Loading branch information
eliovir committed Dec 28, 2013
1 parent d2a4a10 commit 743d392
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}
Expand All @@ -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
Expand All @@ -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() {}
Expand Down

5 comments on commit 743d392

@bors
Copy link
Contributor

@bors bors commented on 743d392 Dec 28, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 743d392 Dec 28, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging eliovir/rust/patch-2 = 743d392 into auto

@bors
Copy link
Contributor

@bors bors commented on 743d392 Dec 28, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eliovir/rust/patch-2 = 743d392 merged ok, testing candidate = 482f75f

@bors
Copy link
Contributor

@bors bors commented on 743d392 Dec 28, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 743d392 Dec 28, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 482f75f

Please sign in to comment.