Make error message consistent with source code

The source code uses `"whatever".as_bytes()`, not `b"whatever"`.
This commit is contained in:
peferron 2015-05-16 17:01:25 -07:00
parent 0d707d15f6
commit 55c8bacc3a

View File

@ -192,8 +192,8 @@ Heres the error:
```text
error: type `std::fs::File` does not implement any method in scope named `write`
let result = f.write(b"whatever");
^~~~~~~~~~~~~~~~~~
let result = f.write("whatever".as_bytes());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
We need to `use` the `Write` trait first: