about summary refs log tree commit diff
path: root/editors/code/src/commands.ts
diff options
context:
space:
mode:
authorRyo Yoshida <low.ryoshida@gmail.com>2023-04-02 19:45:39 +0900
committerRyo Yoshida <low.ryoshida@gmail.com>2023-04-02 20:13:34 +0900
commit613e008593f1caa0b799c1ca5048bd50d28190fd (patch)
treeb37bb4a5dff974fa292d9572839773a43abeeea0 /editors/code/src/commands.ts
parent1ebac28f0d47341173a1271b050e4a07693c8bc6 (diff)
downloadrust-613e008593f1caa0b799c1ca5048bd50d28190fd.tar.gz
rust-613e008593f1caa0b799c1ca5048bd50d28190fd.zip
Don't append "!" to non-bang macro name
Diffstat (limited to 'editors/code/src/commands.ts')
-rw-r--r--editors/code/src/commands.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts
index 486127d005a..7a8490e4767 100644
--- a/editors/code/src/commands.ts
+++ b/editors/code/src/commands.ts
@@ -699,7 +699,7 @@ export function viewFullCrateGraph(ctx: CtxInit): Cmd {
 // The contents of the file come from the `TextDocumentContentProvider`
 export function expandMacro(ctx: CtxInit): Cmd {
     function codeFormat(expanded: ra.ExpandedMacro): string {
-        let result = `// Recursive expansion of ${expanded.name}! macro\n`;
+        let result = `// Recursive expansion of ${expanded.name} macro\n`;
         result += "// " + "=".repeat(result.length - 3);
         result += "\n\n";
         result += expanded.expansion;