aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-core
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2022-09-22 17:53:28 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2022-09-22 17:53:28 +0200
commit712d6d9d6569602533bb209945dd00153142f8ed (patch)
treefd3cd1c80a73faa429598b6a3cfe1510fdbd3cef /nihav-core
parent42005e259dd77147b77c7a0057aa3cf033e331d0 (diff)
downloadnihav-712d6d9d6569602533bb209945dd00153142f8ed.tar.gz
core/io: fix example in intcode
Diffstat (limited to 'nihav-core')
-rw-r--r--nihav-core/src/io/intcode.rs2
1 files changed, 1 insertions, 1 deletions
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.