Fix source_text call in @@raw_lhs documentation example

This commit is contained in:
copilot-swe-agent[bot]
2026-06-29 11:26:07 +00:00
committed by GitHub
parent fb424020af
commit 041a8e6adc

View File

@@ -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()})