From 4b45e8409ebe653408bac758a773165a6384c174 Mon Sep 17 00:00:00 2001 From: Kilian Koeltzsch Date: Thu, 12 Jan 2017 22:01:41 +0100 Subject: [PATCH] Fix code example compile error due to missing use --- src/ch09-02-recoverable-errors-with-result.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ch09-02-recoverable-errors-with-result.md b/src/ch09-02-recoverable-errors-with-result.md index 8ebbf9e47..44639ae0c 100644 --- a/src/ch09-02-recoverable-errors-with-result.md +++ b/src/ch09-02-recoverable-errors-with-result.md @@ -361,6 +361,7 @@ to the code that called this function: ```rust use std::io; +use std::io::Read; use std::fs::File; fn read_username_from_file() -> Result {