diff --git a/README.md b/README.md index c510d89..0e8bfbf 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ or military projects that can't have virally licensed dependencies. # fn try_main() -> Result<()> { let message = Message::new() .with_command(CommandWord::new() - .with_subaddress(12) + .with_address(12) .with_subaddress(5) .with_word_count(2) .build()? diff --git a/src/message/packets.rs b/src/message/packets.rs index bb411e8..9c99cae 100644 --- a/src/message/packets.rs +++ b/src/message/packets.rs @@ -40,7 +40,7 @@ impl Packet { } } - /// Parse a slice of bytes into sync, bytes, and parity + /// Parse a slice of bytes into sync, word, and parity /// /// This method interpretes the first 20 bits of the byte /// array as a triplet: 3-bit sync, 16-bit word, and 1-bit