auto merge of #9457 : klutzy/rust/doc-fix, r=alexcrichton

This commit is contained in:
bors 2013-09-24 03:46:00 -07:00
commit 85ca934bfe
1 changed files with 2 additions and 2 deletions

View File

@ -25,8 +25,8 @@ modify/read the slot specified by the key.
~~~{.rust}
use std::local_data;
local_data_key!(key_int: int);
local_data_key!(key_vector: ~[int]);
local_data_key!(key_int: int)
local_data_key!(key_vector: ~[int])
local_data::set(key_int, 3);
local_data::get(key_int, |opt| assert_eq!(opt, Some(&3)));