Commit a97f354
authored
Rollup merge of #69284 - jumbatm:openoptions-create-doc, r=Dylan-DPC
Reword OpenOptions::{create, create_new} doc.
Closes #69254.
Currently, the doc comment for `fs::OpenOptions::create` doesn't mention its behaviour when opening an existing file, and `fs::OpenOptions::create_new`'s doc comment is worded in a way that doesn't make it clear that it actually _fails_ if the file already exists, not overwrite the existing file with a new one.
This PR addresses addresses this by rewording the doc comments to be more explicit.
r? @GuillaumeGomez1 file changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
844 | 844 | | |
845 | 845 | | |
846 | 846 | | |
847 | | - | |
848 | | - | |
849 | | - | |
850 | | - | |
| 847 | + | |
851 | 848 | | |
852 | 849 | | |
853 | 850 | | |
| |||
868 | 865 | | |
869 | 866 | | |
870 | 867 | | |
871 | | - | |
| 868 | + | |
872 | 869 | | |
873 | | - | |
874 | | - | |
875 | | - | |
| 870 | + | |
| 871 | + | |
876 | 872 | | |
877 | 873 | | |
878 | 874 | | |
| |||
0 commit comments