Skip to content

Commit 8f373dd

Browse files
vishrclaude
andcommitted
review: clarify newNode isLeaf comment wording (Copilot)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 4dae923 commit 8f373dd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

router.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -708,9 +708,9 @@ func newNode(
708708
methods: mh,
709709
paramChild: paramChildren,
710710
anyChild: anyChildren,
711-
// len() (not == nil) so an empty-but-non-nil sc — e.g. a slice a prior
712-
// Remove spliced down to length 0 — is still treated as no children,
713-
// matching refreshLeaf.
711+
// len() (not == nil) so an empty-but-non-nil sc — e.g. a slice from a
712+
// prior Remove that was spliced down to length 0 — is still treated as
713+
// no children, matching refreshLeaf.
714714
isLeaf: len(sc) == 0 && paramChildren == nil && anyChildren == nil,
715715
isHandler: mh.isHandler(),
716716
}

0 commit comments

Comments
 (0)