From: Kostya Shishkov Date: Fri, 10 Jul 2020 09:41:03 +0000 (+0200) Subject: core/codecs: fix wrong type in doc example X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=44fe5056fa05c27af8d3b77291e9c000316bd292;p=nihav.git core/codecs: fix wrong type in doc example --- diff --git a/nihav-core/src/codecs/mod.rs b/nihav-core/src/codecs/mod.rs index 58757ef..8594b40 100644 --- a/nihav-core/src/codecs/mod.rs +++ b/nihav-core/src/codecs/mod.rs @@ -263,7 +263,7 @@ impl Default for EncodeParameters { /// while let Some(frame) = queue.get_frame() { /// // convert to the format encoder expects if required /// encoder.encode(frame)?; -/// while let Some(enc_pkt) = encoder.get_packet()? { +/// while let Ok(enc_pkt) = encoder.get_packet()? { /// // send encoded packet to a muxer for example /// } /// }