Commit 0d854c8
authored
Rework Path::ancestors documentation to remove unwraps
If you take a quick glance at the documentation for Path::ancestors, the unwraps take the natural focus. Potentially indicating that ancestors might panic.
In the reworked version I've also moved the link with parent returning None and that the iterator will always yield &self to before the yield examples.1 parent ddb2666 commit 0d854c8
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2278 | 2278 | | |
2279 | 2279 | | |
2280 | 2280 | | |
2281 | | - | |
2282 | | - | |
2283 | | - | |
2284 | | - | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
2285 | 2284 | | |
2286 | 2285 | | |
2287 | 2286 | | |
| |||
0 commit comments