mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-24 16:25:25 +00:00
Correct all eggs (#15906)
* "eg" is a misspelled "egg", "e.g." is "exempli gratia"
* Also, "ie" is "i.e.".
(cherry picked from commit bbe49a14ae)
This commit is contained in:
@@ -410,7 +410,7 @@ proc testStdlib(r: var TResults, pattern, options: string, cat: Category) =
|
||||
proc isValid(file: string): bool =
|
||||
for dir in parentDirs(file, inclusive = false):
|
||||
if dir.lastPathPart in ["includes", "nimcache"]:
|
||||
# eg: lib/pure/includes/osenv.nim gives: Error: This is an include file for os.nim!
|
||||
# e.g.: lib/pure/includes/osenv.nim gives: Error: This is an include file for os.nim!
|
||||
return false
|
||||
let name = extractFilename(file)
|
||||
if name.splitFile.ext != ".nim": return false
|
||||
@@ -430,7 +430,7 @@ proc testStdlib(r: var TResults, pattern, options: string, cat: Category) =
|
||||
#[
|
||||
todo:
|
||||
this logic is fragile:
|
||||
false positives (if appears in a comment), or false negatives, eg
|
||||
false positives (if appears in a comment), or false negatives, e.g.
|
||||
`when defined(osx) and isMainModule`.
|
||||
Instead of fixing this, see https://github.com/nim-lang/Nim/issues/10045
|
||||
for a much better way.
|
||||
|
||||
Reference in New Issue
Block a user