fix typo in panic message

This commit is contained in:
Simon Bernier St-Pierre
2016-08-26 21:47:50 -04:00
parent 3715e62471
commit 32557cd832
+1 -1
View File
@@ -66,7 +66,7 @@ impl<A, T> Future for ReadExact<A, T>
} }
} }
} }
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) { match mem::replace(&mut self.state, State::Empty) {