about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-09-27 20:31:05 -0700
committerbors <bors@rust-lang.org>2013-09-27 20:31:05 -0700
commit4a2f8ba8c9dc2e145859fa761e7e912dbf3cf598 (patch)
tree2bf839249b8feaec36c6c9973eaac34b27f555f6 /src/libstd/rt
parent3ae895360c89b27bee7f076fded1c99691bd057e (diff)
parentfe9b1e29fc9cc1983fdf17355d7b8956b63d9b55 (diff)
downloadrust-4a2f8ba8c9dc2e145859fa761e7e912dbf3cf598.tar.gz
rust-4a2f8ba8c9dc2e145859fa761e7e912dbf3cf598.zip
auto merge of #9559 : sfackler/rust/more-visibility, r=alexcrichton
Diffstat (limited to 'src/libstd/rt')
-rw-r--r--src/libstd/rt/io/mem.rs20
-rw-r--r--src/libstd/rt/io/net/ip.rs2
2 files changed, 11 insertions, 11 deletions
diff --git a/src/libstd/rt/io/mem.rs b/src/libstd/rt/io/mem.rs
index 6d2a8a0d7e5..5f6b4398c22 100644
--- a/src/libstd/rt/io/mem.rs
+++ b/src/libstd/rt/io/mem.rs
@@ -22,7 +22,7 @@ use vec;
 
 /// Writes to an owned, growable byte vector
 pub struct MemWriter {
-    buf: ~[u8]
+    priv buf: ~[u8]
 }
 
 impl MemWriter {
@@ -66,8 +66,8 @@ impl Decorator<~[u8]> for MemWriter {
 
 /// Reads from an owned byte vector
 pub struct MemReader {
-    buf: ~[u8],
-    pos: uint
+    priv buf: ~[u8],
+    priv pos: uint
 }
 
 impl MemReader {
@@ -129,8 +129,8 @@ impl Decorator<~[u8]> for MemReader {
 
 /// Writes to a fixed-size byte slice
 pub struct BufWriter<'self> {
-    buf: &'self mut [u8],
-    pos: uint
+    priv buf: &'self mut [u8],
+    priv pos: uint
 }
 
 impl<'self> BufWriter<'self> {
@@ -157,8 +157,8 @@ impl<'self> Seek for BufWriter<'self> {
 
 /// Reads from a fixed-size byte slice
 pub struct BufReader<'self> {
-    buf: &'self [u8],
-    pos: uint
+    priv buf: &'self [u8],
+    priv pos: uint
 }
 
 impl<'self> BufReader<'self> {
@@ -199,9 +199,9 @@ impl<'self> Seek for BufReader<'self> {
 ///Calls a function with a MemWriter and returns
 ///the writer's stored vector.
 pub fn with_mem_writer(writeFn:&fn(&mut MemWriter)) -> ~[u8] {
-  let mut writer = MemWriter::new();
-  writeFn(&mut writer);
-  writer.inner()
+    let mut writer = MemWriter::new();
+    writeFn(&mut writer);
+    writer.inner()
 }
 
 #[cfg(test)]
diff --git a/src/libstd/rt/io/net/ip.rs b/src/libstd/rt/io/net/ip.rs
index 041253455f0..78d5163864f 100644
--- a/src/libstd/rt/io/net/ip.rs
+++ b/src/libstd/rt/io/net/ip.rs
@@ -15,7 +15,7 @@ use from_str::FromStr;
 use option::{Option, None, Some};
 
 
-type Port = u16;
+pub type Port = u16;
 
 #[deriving(Eq, TotalEq, Clone)]
 pub enum IpAddr {