From 32557cd8329e1e5ca2f2d059e39f496aab811558 Mon Sep 17 00:00:00 2001 From: Simon Bernier St-Pierre Date: Fri, 26 Aug 2016 21:47:50 -0400 Subject: [PATCH] fix typo in panic message --- src/io/read_exact.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/read_exact.rs b/src/io/read_exact.rs index b251bfeaa84..417e13ce982 100644 --- a/src/io/read_exact.rs +++ b/src/io/read_exact.rs @@ -66,7 +66,7 @@ impl Future for ReadExact } } } - State::Empty => panic!("poll a WriteAll after it's done"), + State::Empty => panic!("poll a ReadExact after it's done"), } match mem::replace(&mut self.state, State::Empty) {