From 44fe5056fa05c27af8d3b77291e9c000316bd292 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 10 Jul 2020 11:41:03 +0200 Subject: [PATCH] core/codecs: fix wrong type in doc example --- nihav-core/src/codecs/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 /// } /// } -- 2.39.5