X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=library%2Fstd%2Fsrc%2Ffs.rs;h=f357d505fe89ce2adcd50f2fdb08615651bc7fae;hb=0f5d3ba30f33116a610e5f9f2bb60f3ce120a167;hp=188ff00e1f8dda454aecd1e3ef4874a5259ddf7b;hpb=52cc0d5360622fe505b4f25973e06b1c9600f07c;p=rust.git diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs index 188ff00e1f8..f357d505fe8 100644 --- a/library/std/src/fs.rs +++ b/library/std/src/fs.rs @@ -401,7 +401,7 @@ pub fn create>(path: P) -> io::Result { /// Ok(()) /// } /// ``` - #[unstable(feature = "file_create_new", issue = "none")] + #[unstable(feature = "file_create_new", issue = "105135")] pub fn create_new>(path: P) -> io::Result { OpenOptions::new().read(true).write(true).create_new(true).open(path.as_ref()) } @@ -510,8 +510,9 @@ pub fn sync_data(&self) -> io::Result<()> { /// # Errors /// /// This function will return an error if the file is not opened for writing. - /// Also, std::io::ErrorKind::InvalidInput will be returned if the desired - /// length would cause an overflow due to the implementation specifics. + /// Also, [`std::io::ErrorKind::InvalidInput`](crate::io::ErrorKind::InvalidInput) + /// will be returned if the desired length would cause an overflow due to + /// the implementation specifics. /// /// # Examples ///