]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #69284 - jumbatm:openoptions-create-doc, r=Dylan-DPC
authorDylan DPC <dylan.dpc@gmail.com>
Wed, 19 Feb 2020 17:12:13 +0000 (18:12 +0100)
committerGitHub <noreply@github.com>
Wed, 19 Feb 2020 17:12:13 +0000 (18:12 +0100)
commita97f354767844680311da5252fe0c81ecfb9ed45
treec4d5b190f4ad7427bc2cd5fc971cacc9e10a6f22
parent61d3b6dedb1ec1f3e3cbd3d66b1a3453225bc37c
parentc899dc14011a67b127bf59622cb13b7ff4a11e9a
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? @GuillaumeGomez