From d7dcc138dd0fb55d188e0a5ab13991be720fc862 Mon Sep 17 00:00:00 2001 From: Zhangyi Yuan Date: Mon, 14 Sep 2026 12:02:10 +0800 Subject: [PATCH] Fix an invalid template literal in the Node file-watcher example The backticks around the path were escaped twice, which closes the template literal early and makes the snippet a syntax error when copied. --- nodejs/docs/examples.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodejs/docs/examples.md b/nodejs/docs/examples.md index 63389c491d..30f5b1c266 100644 --- a/nodejs/docs/examples.md +++ b/nodejs/docs/examples.md @@ -524,7 +524,7 @@ watch(cwd, { recursive: true }, (eventType, filename) => { try { if (!statSync(fullPath).isFile()) return; } catch { return; } const relPath = relative(cwd, fullPath); session.send({ - prompt: `The user edited \\`${relPath}\\`.`, + prompt: `The user edited \`${relPath}\`.`, attachments: [{ type: "file", path: fullPath }], }); }, 500));