Commit f9d58c7
authored
Rollup merge of rust-lang#60945 - blkerby:fill_buf_nll_doc_example, r=shepmaster
Simplify BufRead::fill_buf doc example using NLL
With non-lexical lifetimes, in this example it is no longer necessary to use a block to end the borrow early.1 file changed
+4
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1579 | 1579 | | |
1580 | 1580 | | |
1581 | 1581 | | |
1582 | | - | |
1583 | | - | |
1584 | | - | |
1585 | | - | |
| 1582 | + | |
1586 | 1583 | | |
1587 | | - | |
1588 | | - | |
1589 | | - | |
1590 | | - | |
1591 | | - | |
| 1584 | + | |
| 1585 | + | |
1592 | 1586 | | |
1593 | 1587 | | |
| 1588 | + | |
1594 | 1589 | | |
1595 | 1590 | | |
1596 | 1591 | | |
| |||
0 commit comments