mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +00:00
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