summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/scanner.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scanner.rs b/src/scanner.rs
index f792898..cfe2da9 100644
--- a/src/scanner.rs
+++ b/src/scanner.rs
@@ -25,7 +25,7 @@ impl Scanner {
self.len() == 0
}
- pub fn get_char_at(&self, index: usize) -> Option<char> {
+ pub fn char_at(&self, index: usize) -> Option<char> {
self.source.get(index).cloned()
}