Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/scanner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::io::{BufRead, BufReader, Read};

use std::u8;

/// END_OF_STREAM indicates that scanner has reach the end of stream.
/// END_OF_STREAM indicates that scanner has reached the end of stream.
const EOF: char = 0xFF as char;
const INIT: char = 0x0 as char;

Expand Down Expand Up @@ -254,7 +254,7 @@ impl<R: Read> Scanner<R> {

fn save(&mut self, c: char) {
self.buffer.reserve(1);
self.buffer.put(c as u8)
self.buffer.put_u8(c as u8)
}

fn save_and_advance(&mut self) {
Expand Down