Skip to content

Commit

Permalink
Merge pull request #1 from sbstp/typo
Browse files Browse the repository at this point in the history
Fix typo in panic message
  • Loading branch information
alexcrichton authored Aug 27, 2016
2 parents 3715e62 + 32557cd commit b939580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/read_exact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b939580

Please sign in to comment.