diff options
| author | bors <bors@rust-lang.org> | 2014-01-14 12:32:11 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-01-14 12:32:11 -0800 |
| commit | 9075025c7b48ffc028b3bddbb983ceac98ce9636 (patch) | |
| tree | e3e7c8832f1d8ecf7700665f91b2938e8bcb01b6 /src/libstd/local_data.rs | |
| parent | b77a7e76a18f0d2237813428425c80bf78faf772 (diff) | |
| parent | 509fc92a9bb6f9a251308476ebf4e76795df60bf (diff) | |
| download | rust-9075025c7b48ffc028b3bddbb983ceac98ce9636.tar.gz rust-9075025c7b48ffc028b3bddbb983ceac98ce9636.zip | |
auto merge of #11485 : eddyb/rust/sweep-old-rust, r=nikomatsakis
Diffstat (limited to 'src/libstd/local_data.rs')
| -rw-r--r-- | src/libstd/local_data.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstd/local_data.rs b/src/libstd/local_data.rs index 95fdce99ea6..159337bf503 100644 --- a/src/libstd/local_data.rs +++ b/src/libstd/local_data.rs @@ -187,8 +187,7 @@ pub fn get<T: 'static, U>(key: Key<T>, f: |Option<&T>| -> U) -> U { /// if the key provided is not present in TLS currently. /// /// It is considered a runtime error to attempt to get a value which is already -/// on loan via this or the `get` methods. This is similar to how it's a runtime -/// error to take two mutable loans on an `@mut` box. +/// on loan via this or the `get` methods. pub fn get_mut<T: 'static, U>(key: Key<T>, f: |Option<&mut T>| -> U) -> U { get_with(key, MutLoan, |x| { match x { |
