Skip to content

Commit f44008e

Browse files
authored
Fix missing code fence in 0.16 migration guide (#2022)
1 parent b6f9d4c commit f44008e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

release-content/0.16/migration-guides/17826_Fix_unsoundness_in_QueryItersort_by.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ query.iter().sort_by::<&C>(comparer);
1111
// now fails with "error: implementation of `FnMut` is not general enough"
1212
fn comparer(left: &&'w C, right: &&'w C) -> Ordering { /* ... */ }
1313
// After: Accepts any lifetime using inferred lifetime parameter
14-
fn comparer(left: &&C, right: &&C) -> Ordering { /* ... */ }```
14+
fn comparer(left: &&C, right: &&C) -> Ordering { /* ... */ }
15+
```

0 commit comments

Comments
 (0)