Rollup merge of #25014 - frewsxcv:patch-20, r=alexcrichton
The variable doesn't need to be mutable.
This commit is contained in:
commit
c834fe474c
1 changed files with 1 additions and 1 deletions
|
@ -643,7 +643,7 @@ impl Permissions {
|
||||||
/// use std::fs::File;
|
/// use std::fs::File;
|
||||||
///
|
///
|
||||||
/// # fn foo() -> std::io::Result<()> {
|
/// # fn foo() -> std::io::Result<()> {
|
||||||
/// let mut f = try!(File::create("foo.txt"));
|
/// let f = try!(File::create("foo.txt"));
|
||||||
/// let metadata = try!(f.metadata());
|
/// let metadata = try!(f.metadata());
|
||||||
/// let mut permissions = metadata.permissions();
|
/// let mut permissions = metadata.permissions();
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in a new issue