Commit 4da8a7a
authored
Rollup merge of rust-lang#109540 - marcospb19:edit-Path-with_file_name-example, r=m-ou-se
std docs: edit `PathBuf::set_file_name` example
To make explicit that `set_file_name` might replace or remove the
extension, not just the file stem.
Also edit docs for `Path::with_file_name`, which calls `set_file_name`.1 file changed
+11
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1395 | 1395 | | |
1396 | 1396 | | |
1397 | 1397 | | |
1398 | | - | |
1399 | | - | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
1400 | 1401 | | |
1401 | | - | |
1402 | | - | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
1403 | 1408 | | |
1404 | 1409 | | |
1405 | 1410 | | |
| |||
2562 | 2567 | | |
2563 | 2568 | | |
2564 | 2569 | | |
2565 | | - | |
| 2570 | + | |
| 2571 | + | |
2566 | 2572 | | |
2567 | 2573 | | |
2568 | 2574 | | |
| |||
0 commit comments