From: Kostya Shishkov Date: Thu, 22 Sep 2022 15:53:28 +0000 (+0200) Subject: core/io: fix example in intcode X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=712d6d9d6569602533bb209945dd00153142f8ed;p=nihav.git core/io: fix example in intcode --- diff --git a/nihav-core/src/io/intcode.rs b/nihav-core/src/io/intcode.rs index f5d1282..f05d64f 100644 --- a/nihav-core/src/io/intcode.rs +++ b/nihav-core/src/io/intcode.rs @@ -205,7 +205,7 @@ impl<'a> IntCodeReader for BitReader<'a> { /// use nihav_core::io::intcode::{IntCodeWriter,IntCodeType}; /// /// let mut bw = BitWriter::new(Vec::new(), BitWriterMode::BE); -/// bw.write_code_signed(IntCodeType::Gamma, 42)?; +/// bw.write_code_signed(IntCodeType::Gamma, 42); /// ```` pub trait IntCodeWriter { /// Writes an unsigned integer code of requested type.