Skip to content

Commit a5de456

Browse files
josecelanoda2ce7
authored andcommitted
docs: update comment
Funtion doesn't panic anymore.
1 parent bf4d5e8 commit a5de456

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/parsers/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,6 @@ impl<R: Read> BencodeParser<R> {
294294
/// # Errors
295295
///
296296
/// Will return an error if the writer can't write to the output.
297-
///
298-
/// # Panics
299-
///
300-
/// Will panic if the end of bencoded value (list or dictionary) was not
301-
/// expected.
302297
pub fn end_list_or_dict<W: Writer>(&mut self, writer: &mut W) -> Result<(), error::Error> {
303298
match self.stack.peek() {
304299
State::ExpectingFirstListItemOrEnd | State::ExpectingNextListItem => {

0 commit comments

Comments
 (0)