Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compile error #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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