From b65aa76d2dea689aecce35ea3161964ead51f2a5 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Thu, 10 Sep 2026 11:13:46 -0600 Subject: [PATCH] docs: updated the formatting of a few comments --- src/graph/map.rs | 2 +- src/graph/validator.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/graph/map.rs b/src/graph/map.rs index 5ca4bdd..392503b 100644 --- a/src/graph/map.rs +++ b/src/graph/map.rs @@ -293,7 +293,7 @@ fn wants_peer_identity(node: &Node) -> bool { /// A templated cap is resolved against the parent state right before the /// fan-out. Scripts often emit numbers as strings, so a numeric string is -/// accepted; anything else — including 0 — is the author's bug and surfaces +/// accepted; anything else, including 0, is the author's bug and surfaces /// as an error rather than being clamped. fn resolve_max_concurrency( node: &MapNode, diff --git a/src/graph/validator.rs b/src/graph/validator.rs index 545a3ad..51d2093 100644 --- a/src/graph/validator.rs +++ b/src/graph/validator.rs @@ -631,8 +631,8 @@ impl GraphValidator { if fallback_targets.contains(id) { message.push_str( "; a branch's `fallback` must stay inside the branch subgraph; \ - before this release `fallback` on a map branch was accepted but \ - never honored — remove it or point it at a branch-local node", + `fallback` on a map branch was previously accepted but \ + never honored. Remove it or point it at a branch-local node", ); } result.error(ValidationError::with_node(map_id, message)); @@ -929,7 +929,7 @@ fn main_flow_reachable(graph: &Graph) -> HashSet { /// Nodes reachable from `entry` over the edges a chain can follow at run /// time: `next` targets and script/llm `fallback`s. Approval routes and a -/// nested map's `branch` are not followed — neither may appear inside a +/// nested map's `branch` are not followed. Neither may appear inside a /// branch, and the validator reports them separately. pub(super) fn branch_subgraph(graph: &Graph, entry: &str) -> HashSet { let mut reachable: HashSet = HashSet::new();