We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5c4adc1 + bcc6ac7 commit 0bc7929Copy full SHA for 0bc7929
examples/kaleidoscope/main.rs
@@ -92,7 +92,7 @@ pub struct Lexer<'a> {
92
impl<'a> Lexer<'a> {
93
/// Creates a new `Lexer`, given its source `input`.
94
pub fn new(input: &'a str) -> Lexer<'a> {
95
- Lexer { input: input, chars: Box::new(input.chars().peekable()), pos: 0 }
+ Lexer { input, chars: Box::new(input.chars().peekable()), pos: 0 }
96
}
97
98
/// Lexes and returns the next `Token` from the source code.
0 commit comments