diff --git a/tutorial.md b/tutorial.md index 6d944f05..e69d1bc7 100644 --- a/tutorial.md +++ b/tutorial.md @@ -539,7 +539,7 @@ expression definition. However, we also want to be able to chain `let`s together definition. We call it `decl` ('declaration') because we're eventually going to be adding `fn` syntax too. ```rust -let ident = text::ascii::ident() +let ident = text::ident() .padded(); let expr = recursive(|expr| { @@ -576,7 +576,7 @@ let expr = recursive(|expr| { }); let decl = recursive(|decl| { - let r#let = text::ascii::keyword("let") + let r#let = text::keyword("let") .ignore_then(ident) .then_ignore(just('=')) .then(expr.clone()) @@ -685,7 +685,7 @@ looks very much like the existing definition of `r#let`: ```rust let decl = recursive(|decl| { - let r#let = text::ascii::keyword("let") + let r#let = text::keyword("let") .ignore_then(ident) .then_ignore(just('=')) .then(expr.clone()) @@ -697,7 +697,7 @@ let decl = recursive(|decl| { then: Box::new(then), }); - let r#fn = text::ascii::keyword("fn") + let r#fn = text::keyword("fn") .ignore_then(ident) .then(ident.repeated()) .then_ignore(just('='))