]> git.lizzy.rs Git - rust.git/commitdiff
Remove unnecessary 'mut' qualifier on doc-comment var
authorCorey Farwell <coreyf@rwell.org>
Thu, 30 Apr 2015 23:20:59 +0000 (19:20 -0400)
committerCorey Farwell <coreyf@rwell.org>
Thu, 30 Apr 2015 23:20:59 +0000 (19:20 -0400)
The variable doesn't need to be mutable.

src/libstd/fs.rs

index 2b15a4ff83ed13a94939240b68d5c45a44f6e056..5a05c61e064df5b93ec6f171e2a98fd96a633f7b 100644 (file)
@@ -643,7 +643,7 @@ pub fn readonly(&self) -> bool { self.0.readonly() }
     /// use std::fs::File;
     ///
     /// # 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 mut permissions = metadata.permissions();
     ///