Skip to content

Commit

Permalink
[stdlib] Cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyash-b committed Dec 31, 2024
1 parent eff7b30 commit be05536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stdlib.ngs
Original file line number Diff line number Diff line change
Expand Up @@ -5026,7 +5026,7 @@ section "Strings and characters" {
m = (~)(haystack, needle, 0)
if not(m) {
if collect_unmatched collect(haystack)
return null
return
}
start_offset = m.positions[0].start
next_offset = m.positions[0].end
Expand Down

0 comments on commit be05536

Please sign in to comment.