Skip to content

Commit 54b3b0e

Browse files
committed
comment: describing the conditional breaking
1 parent 956fd69 commit 54b3b0e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

path.go

+1
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ func findNextParamPosition(pattern string) int {
281281
break
282282
}
283283
nextParamPosition++
284+
// if nextParamPosition is the last index; if so, no further search is needed.
284285
if len(pattern) <= nextParamPosition+1 {
285286
break
286287
}

0 commit comments

Comments
 (0)