gen_statem: disambiguate module/macro intra-doc links

This commit is contained in:
smarm-agent
2026-06-20 19:51:33 +00:00
parent e54c67c431
commit 3e9c33377c
+2 -2
View File
@@ -14,7 +14,7 @@
//! [`on_start`](Machine::on_start), then one [`handle`](Machine::handle) per
//! inbox event — mirroring `gen_server`'s spawn/teardown idioms.
//!
//! The [`gen_statem!`](crate::gen_statem) macro is the authoring surface: it
//! The [`gen_statem!`](crate::gen_statem!) macro is the authoring surface: it
//! *generates* a `Machine` impl from per-state handler blocks. Edge-validity is
//! not a separate check — it falls out of the generated total `match (state,
//! event)` under denied lints (a forgotten or duplicated pair is a compile
@@ -82,7 +82,7 @@ use std::time::Duration;
// Machine
// ---------------------------------------------------------------------------
/// A finite state machine driven by the [`statem`](crate::gen_statem) loop.
/// A finite state machine driven by the [`statem`](mod@crate::gen_statem) loop.
///
/// The implementor owns its current state tag and its persistent data. It is
/// the **sole writer** of the state cell (the loop never touches it): both