From 7286d93e63500adf4d6fb69b26c6e67143759659 Mon Sep 17 00:00:00 2001 From: John Breaux Date: Wed, 23 Aug 2023 00:32:25 -0500 Subject: [PATCH] encoding.rs: Fix example in doc comment --- src/parser/instruction/encoding.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser/instruction/encoding.rs b/src/parser/instruction/encoding.rs index b1bef8f..c3683c3 100644 --- a/src/parser/instruction/encoding.rs +++ b/src/parser/instruction/encoding.rs @@ -20,14 +20,14 @@ use encoding_parser::EncodingParser; /// /// # Examples /// ```rust -/// use msp430_asm::{*, parser::{Encoding, EncodingParser}}; +/// use msp430_asm::{preamble::*, parser::preamble::*}; /// // Create a token sequence /// let asm_file = r".b 8000(r15)"; /// // Create a single-operand encoding parser /// let single: EncodingParser = Encoding::single().end(); /// // Parse an Encoding from it /// let encoding: Encoding = single -/// .parse(&Parser::default(), &mut Tokenizer::new(asm_file).ignore_spaces()) +/// .parse(&Default::default(), &mut Tokenizer::new(asm_file).ignore_spaces()) /// .unwrap(); /// // Print the Encoding /// println!("{encoding}");