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:
Miran
2020-11-10 21:53:25 +01:00
committed by narimiran
parent 192cb9ff90
commit 04f810c2ec
26 changed files with 38 additions and 38 deletions

View File

@@ -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.