about summary refs log tree commit diff
path: root/src/libstd/io.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-01-19 15:20:57 -0800
committerPatrick Walton <pcwalton@mimiga.net>2012-01-19 15:22:25 -0800
commitc5a407b11bf01aa2a348010dffbbce2cf202d503 (patch)
tree0430f216db0812e131670822b53b009a25ad9c5d /src/libstd/io.rs
parent7e21be5304769686726f8939606ccdbe38127814 (diff)
downloadrust-c5a407b11bf01aa2a348010dffbbce2cf202d503.tar.gz
rust-c5a407b11bf01aa2a348010dffbbce2cf202d503.zip
stdlib: "tag" -> "enum"
Diffstat (limited to 'src/libstd/io.rs')
-rw-r--r--src/libstd/io.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/io.rs b/src/libstd/io.rs
index 9a0cb10c858..eca266ecfa9 100644
--- a/src/libstd/io.rs
+++ b/src/libstd/io.rs
@@ -17,7 +17,7 @@ native mod rustrt {
 // Reading
 
 // FIXME This is all buffered. We might need an unbuffered variant as well
-tag seek_style { seek_set; seek_end; seek_cur; }
+enum seek_style { seek_set; seek_end; seek_cur; }
 
 
 // The raw underlying reader iface. All readers must implement this.
@@ -264,7 +264,7 @@ fn string_reader(s: str) -> reader {
 
 
 // Writing
-tag fileflag { append; create; truncate; none; }
+enum fileflag { append; create; truncate; none; }
 
 // FIXME: Seekable really should be orthogonal.
 // FIXME: eventually u64
@@ -495,7 +495,7 @@ fn read_whole_file(file: str) -> result::t<[u8], str> {
 
 mod fsync {
 
-    tag level {
+    enum level {
         // whatever fsync does on that platform
         fsync;