Skip to content

Visibility fixes #9559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 28, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/libstd/rt/io/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use vec;

/// Writes to an owned, growable byte vector
pub struct MemWriter {
buf: ~[u8]
priv buf: ~[u8]
}

impl MemWriter {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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> {
Expand All @@ -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> {
Expand Down Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/rt/io/net/ip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down