Skip to content

Commit c3a819b

Browse files
committed
std: writing to stdout only works when using -1 offset..
1 parent a7ee85b commit c3a819b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/rt/uv/file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ mod test {
416416
let stdout = FileDescriptor(STDOUT_FILENO);
417417
let write_val = input.as_bytes();
418418
let write_buf = slice_to_uv_buf(write_val);
419-
stdout.write_sync(loop_, write_buf, 0);
419+
stdout.write_sync(loop_, write_buf, -1);
420420
}
421421
422422
#[test]

0 commit comments

Comments
 (0)