The wonky for...in... whitespace was bothering me. Sorry!

This commit is contained in:
Lindsey Kuper
2011-08-15 21:54:52 -07:00
parent cb239cc028
commit f91351aaf6
102 changed files with 564 additions and 564 deletions

View File

@@ -291,7 +291,7 @@ obj fd_buf_writer(fd: int, res: option::t[@fd_res]) {
fn file_buf_writer(path: str, flags: &[fileflag]) -> buf_writer {
let fflags: int =
os::libc_constants::O_WRONLY() | os::libc_constants::O_BINARY();
for f: fileflag in flags {
for f: fileflag in flags {
alt f {
append. { fflags |= os::libc_constants::O_APPEND(); }
create. { fflags |= os::libc_constants::O_CREAT(); }
@@ -402,7 +402,7 @@ obj byte_buf_writer(buf: mutable_byte_buf) {
// Fast path.
if buf.pos == ivec::len(buf.buf) {
for b: u8 in v { buf.buf += ~[mutable b]; }
for b: u8 in v { buf.buf += ~[mutable b]; }
buf.pos += ivec::len[u8](v);
ret;
}