mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 19:22:40 +00:00
Merge pull request #2136 from oderwat/fix-matchers
Fixed non exhaustive case by adding else
This commit is contained in:
@@ -42,7 +42,7 @@ proc validEmailAddress*(s: string): bool {.noSideEffect,
|
||||
case toLower(x)
|
||||
of "com", "org", "net", "gov", "mil", "biz", "info", "mobi", "name",
|
||||
"aero", "jobs", "museum": return true
|
||||
return false
|
||||
else: return false
|
||||
|
||||
proc parseInt*(s: string, value: var int, validRange: Slice[int]) {.
|
||||
noSideEffect, rtl, extern: "nmatchParseInt".} =
|
||||
|
||||
Reference in New Issue
Block a user