Skip to content

Commit 041a8e6

Browse files
authored
Fix source_text call in @@raw_lhs documentation example
1 parent fb42402 commit 041a8e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shared/yeast/doc/yeast.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ yeast::rule!(
320320
=>
321321
{
322322
// raw_lhs is untranslated: read its original source text.
323-
let text = ctx.ast.source_text(raw_lhs.into());
323+
let text = ctx.ast.source_text(raw_lhs);
324324
// rhs is already translated by the auto-translate prefix.
325325
tree!((call
326326
method: (identifier #{text.as_str()})

0 commit comments

Comments
 (0)