Correct all eggs (#15906)
* "eg" is a misspelled "egg", "e.g." is "exempli gratia" * Also, "ie" is "i.e.".
This commit is contained in:
parent
bc3c0487d3
commit
bbe49a14ae
26 changed files with 38 additions and 38 deletions
|
|
@ -413,7 +413,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
|
||||
|
|
@ -433,7 +433,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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue