diff options
Diffstat (limited to 'src/libstd/task.rs')
| -rw-r--r-- | src/libstd/task.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/task.rs b/src/libstd/task.rs index c20cbea0ae7..72cc596085e 100644 --- a/src/libstd/task.rs +++ b/src/libstd/task.rs @@ -638,7 +638,7 @@ mod test { }); assert!(r.is_ok()); - let output = reader.read_to_str().unwrap(); + let output = reader.read_to_string().unwrap(); assert_eq!(output, "Hello, world!".to_string()); } |
