From 9cd295636c37c3ce5e8d70d61998304d0e13f77b Mon Sep 17 00:00:00 2001 From: Jacherr Date: Thu, 4 Jul 2024 17:04:50 +0100 Subject: [PATCH] complete rustc example --- assyst-core/src/command/misc/run.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assyst-core/src/command/misc/run.rs b/assyst-core/src/command/misc/run.rs index 465af4c..f825c69 100644 --- a/assyst-core/src/command/misc/run.rs +++ b/assyst-core/src/command/misc/run.rs @@ -280,7 +280,7 @@ fn main() { access = Availability::Dev, category = Category::Misc, usage = "[script]", - examples = ["run(\"fn main() {}\", |tcx| "], + examples = ["run(\"fn main() {}\", |tcx| { dbg!(tcx.hir().root_module()); });"], send_processing = true, )] pub async fn rustc(ctxt: CommandCtxt<'_>, script: Codeblock) -> anyhow::Result<()> {