Commit f91b0c5
authored
Rollup merge of rust-lang#157323 - majiayu000:docs-repeat-last-panic, r=jhpratt
Document Repeat::last panic behavior
Fixes rust-lang#149707
Documents that `Repeat::last` always panics because `Repeat` is infinite.
Tests:
- `./x fmt --check`
- `./x doc library/core`
- `./x test library/core`1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
104 | 109 | | |
105 | 110 | | |
106 | 111 | | |
107 | 112 | | |
108 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
109 | 119 | | |
110 | 120 | | |
111 | 121 | | |
| |||
0 commit comments