We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0716782 commit 426ad12Copy full SHA for 426ad12
src/libstd/local_data.rs
@@ -25,8 +25,8 @@ modify/read the slot specified by the key.
25
~~~{.rust}
26
use std::local_data;
27
28
-local_data_key!(key_int: int);
29
-local_data_key!(key_vector: ~[int]);
+local_data_key!(key_int: int)
+local_data_key!(key_vector: ~[int])
30
31
local_data::set(key_int, 3);
32
local_data::get(key_int, |opt| assert_eq!(opt, Some(&3)));
0 commit comments