We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d6dded commit c54b4c6Copy full SHA for c54b4c6
Cargo.toml
@@ -2,5 +2,10 @@
2
name = "scanner"
3
version = "0.1.0"
4
edition = "2021"
5
+authors = ["Luís Góis <ShellTux@Github"]
6
+description = "Scanner is a simple utility to parse strings, numbers, ..."
7
+license = "MIT"
8
+readme = "./README.md"
9
+keywords = ["scanner"]
10
11
[dependencies]
src/main.rs
@@ -4,7 +4,7 @@ use scanner::scanner::Scanner;
fn main() {
let input = "-8 + 9";
- let mut scanner = Scanner::new(&input);
+ let mut scanner = Scanner::new(input);
let x: isize = scanner.next_number().expect("Expecting number");
let op = scanner.next_word().expect("Expecting word");
0 commit comments