diff --git a/shared/yeast/doc/yeast.md b/shared/yeast/doc/yeast.md index 8ea2e67b2de..8aa050592f6 100644 --- a/shared/yeast/doc/yeast.md +++ b/shared/yeast/doc/yeast.md @@ -320,7 +320,7 @@ yeast::rule!( => { // raw_lhs is untranslated: read its original source text. - let text = ctx.ast.source_text(raw_lhs.into()); + let text = ctx.ast.source_text(raw_lhs); // rhs is already translated by the auto-translate prefix. tree!((call method: (identifier #{text.as_str()})