Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
fix(docs): typo in code example (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
shafu0x committed Sep 29, 2023
1 parent 6cf4121 commit c62ab07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion huff_lexer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use std::ops::Deref;
// Instantiate a new lexer
let source = "#define macro HELLO_WORLD()";
let flattened_source = FullFileSource { source, file: None, spans: vec![] };
let mut lexer = Lexer::new(flattened_source.sour);
let mut lexer = Lexer::new(flattened_source.source);

// This token should be a Define identifier
let tok = lexer.next().unwrap().unwrap();
Expand Down

0 comments on commit c62ab07

Please sign in to comment.