This commit is contained in:
travis-update-bot
2015-11-13 17:07:48 +00:00
parent f7e3136845
commit ef8f4e2dac
2 changed files with 3 additions and 3 deletions

View File

@@ -131,7 +131,7 @@ Fortunately there already is a crate for that: [rlibc]. When we look at its [sou
```toml
...
[dependencies]
rlibc = "*"
rlibc = "0.1.4"
```
and an `extern crate` definition in our `src/lib.rs`:

View File

@@ -315,8 +315,8 @@ To use a spinning mutex, we can add the [spin crate] as a dependency in Cargo.to
```toml
...
[dependencies]
rlibc = "*"
spin = "*"
rlibc = "0.1.4"
spin = "0.3.4"
```
and a `extern crate spin;` definition in `src/lib.rs`. Then we can use the spinning Mutex to provide interior mutability to our static writer: