]> git.nihav.org Git - nihav.git/commitdiff
core/io: fix example in intcode
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 22 Sep 2022 15:53:28 +0000 (17:53 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 22 Sep 2022 15:53:28 +0000 (17:53 +0200)
nihav-core/src/io/intcode.rs

index f5d128216e802212b4a69ce9e9d4429b5d9a84e4..f05d64f0eebaa21b0fb1a6c3a802c4a65a838bde 100644 (file)
@@ -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.