From c0ec407cdee53cf6ae526bd705dfeabed6426792 Mon Sep 17 00:00:00 2001 From: Patrick Eanism Date: Sun, 20 Sep 2026 03:03:47 -0700 Subject: [PATCH] docs: quote the register_driver! hint with its shape The error message now shows the macro's arguments (register_driver!(Type, factory)) instead of implying a zero-argument call; keep the page's quote exact. --- content/docs/development/extending-the-runtime.mdx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/content/docs/development/extending-the-runtime.mdx b/content/docs/development/extending-the-runtime.mdx index d96601b..3c479b2 100644 --- a/content/docs/development/extending-the-runtime.mdx +++ b/content/docs/development/extending-the-runtime.mdx @@ -326,9 +326,10 @@ that pins the behaviour is `register_overwrites` at `:190-197`). An unknown `use` value is a hard error listing what is registered (`drivers/mod.rs:232-247`). If the registry is empty the message instead reads -"No node types are registered. Call `register_driver!()` first, or depend on a -crate that registers its driver types." (`drivers/mod.rs:286`) — the same macro -this page uses, so there is nothing to translate. +"No node types are registered. Register your driver with +`register_driver!(Type, factory)`, or depend on a crate that registers its +types." (`drivers/mod.rs:286`) — the same macro this page uses, so there is +nothing to translate. The macro registers by emitting a static into `.init_array` — the ELF