Skip to content
Prev Previous commit
Next Next commit
fix rust highlighting in deref block
  • Loading branch information
cristicbz committed Oct 14, 2016
commit eb63ff84a0e0925802fe65d50b8be989ef855690
4 changes: 2 additions & 2 deletions text/0000-entry-into-owned.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ pub fn entry<'a, Q, B>(&'a self, k: Q) -> Entry<'a, K, V, Q>
}
```

### Deref coercions and backwards compatibility.
### Deref coercions and backwards compatibility

An unexpected backwards compatibility hazard comes from deref coercions.
Consider:

```
```rust
fn increment<'a>(map: &mut HashMap<&'a str, u32>, key: &'a String) {
*map.entry(key).or_insert(0) += 1;
}
Expand Down