We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
set_readonly
1 parent 5a93be4 commit 10a479eCopy full SHA for 10a479e
src/libstd/fs.rs
@@ -934,7 +934,11 @@ impl Permissions {
934
#[stable(feature = "rust1", since = "1.0.0")]
935
pub fn readonly(&self) -> bool { self.0.readonly() }
936
937
- /// Modifies the readonly flag for this set of permissions.
+ /// Modifies the readonly flag for this set of permissions. If the
938
+ /// `readonly` argument is `true`, using the resulting `Permission` will
939
+ /// update file permissions to forbid writing. Conversely, if it's `false`,
940
+ /// using the resulting `Permission` will update file permissions to allow
941
+ /// writing.
942
///
943
/// This operation does **not** modify the filesystem. To modify the
944
/// filesystem use the `fs::set_permissions` function.
0 commit comments