about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/io.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/io.rs b/src/libstd/io.rs
index 95f275a9be0..0fb000c8315 100644
--- a/src/libstd/io.rs
+++ b/src/libstd/io.rs
@@ -264,7 +264,7 @@ fn string_reader(s: str) -> reader {
 
 
 // Writing
-enum fileflag { append, create, truncate, none, }
+enum fileflag { append, create, truncate, no_flag, }
 
 // FIXME: Seekable really should be orthogonal.
 // FIXME: eventually u64
@@ -350,7 +350,7 @@ fn mk_file_writer(path: str, flags: [fileflag])
           append { fflags |= os::libc_constants::O_APPEND; }
           create { fflags |= os::libc_constants::O_CREAT; }
           truncate { fflags |= os::libc_constants::O_TRUNC; }
-          none { }
+          no_flag { }
         }
     }
     let fd = str::as_buf(path, {|pathbuf|