mirror of
https://github.com/stefanoamorelli/crabrl.git
synced 2026-04-18 07:10:42 +00:00
fix: update examples to match API
- Fix parse method name to parse_bytes - Fix fact iteration pattern - Simplify validation example
This commit is contained in:
@@ -17,7 +17,7 @@ fn main() {
|
||||
let parser = Parser::new();
|
||||
let start = Instant::now();
|
||||
|
||||
match parser.parse(&content) {
|
||||
match parser.parse_bytes(&content) {
|
||||
Ok(document) => {
|
||||
let elapsed = start.elapsed();
|
||||
println!("Parsed in {:.3}ms: {} facts, {} contexts, {} units",
|
||||
|
||||
Reference in New Issue
Block a user