Skip to content

Commit

Permalink
add type annotations to doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Jan 14, 2017
1 parent 2979b0f commit caf4164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcollections/btree/map.rs
Expand Up @@ -763,7 +763,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
/// let mut map: BTreeMap<&str, i32> = ["Alice", "Bob", "Carol", "Cheryl"].iter()
/// .map(|&s| (s, 0))
/// .collect();
/// for (_, balance) in map.range_mut((Included("B"), Excluded("Cheryl"))) {
/// for (_, balance) in map.range_mut::<str, _>((Included("B"), Excluded("Cheryl"))) {
/// *balance += 100;
/// }
/// for (name, balance) in &map {
Expand Down

0 comments on commit caf4164

Please sign in to comment.