diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/core/macros.nim | 4 | ||||
-rw-r--r-- | lib/pure/times.nim | 2 | ||||
-rw-r--r-- | lib/std/jsonutils.nim | 2 | ||||
-rw-r--r-- | lib/system/jssys.nim | 2 | ||||
-rw-r--r-- | lib/system/strmantle.nim | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim index e4a56d6f9..d2985bc72 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -160,7 +160,7 @@ proc `==`*(a, b: NimSym): bool {.magic: "EqNimrodNode", noSideEffect, deprecated proc sameType*(a, b: NimNode): bool {.magic: "SameNodeType", noSideEffect.} = ## Compares two Nim nodes' types. Return true if the types are the same, - ## eg. true when comparing alias with original type. + ## e.g. true when comparing alias with original type. discard proc len*(n: NimNode): int {.magic: "NLen", noSideEffect.} @@ -280,7 +280,7 @@ else: # bootstrapping substitute when (NimMajor, NimMinor, NimPatch) >= (1, 3, 5) or defined(nimSymImplTransform): proc getImplTransformed*(symbol: NimNode): NimNode {.magic: "GetImplTransf", noSideEffect.} ## For a typed proc returns the AST after transformation pass; this is useful - ## for debugging how the compiler transforms code (eg: `defer`, `for`) but + ## for debugging how the compiler transforms code (e.g.: `defer`, `for`) but ## note that code transformations are implementation dependent and subject to change. ## See an example in `tests/macros/tmacros_various.nim`. diff --git a/lib/pure/times.nim b/lib/pure/times.nim index fb2f5e430..35dda131b 100644 --- a/lib/pure/times.nim +++ b/lib/pure/times.nim @@ -1049,7 +1049,7 @@ since((1, 3)): export isInitialized proc isLeapDay*(dt: DateTime): bool {.since: (1, 1).} = - ## returns whether `t` is a leap day, ie, Feb 29 in a leap year. This matters + ## Returns whether `t` is a leap day, i.e. Feb 29 in a leap year. This matters ## as it affects time offset calculations. runnableExamples: let dt = initDateTime(29, mFeb, 2020, 00, 00, 00, utc()) diff --git a/lib/std/jsonutils.nim b/lib/std/jsonutils.nim index dd174303a..50dcd9675 100644 --- a/lib/std/jsonutils.nim +++ b/lib/std/jsonutils.nim @@ -17,7 +17,7 @@ import std/[json,strutils,tables,sets,strtabs,options] #[ Future directions: -add a way to customize serialization, for eg: +add a way to customize serialization, for e.g.: * field renaming * allow serializing `enum` and `char` as `string` instead of `int` (enum is more compact/efficient, and robust to enum renamings, but string diff --git a/lib/system/jssys.nim b/lib/system/jssys.nim index df05a9a62..c4c671ea3 100644 --- a/lib/system/jssys.nim +++ b/lib/system/jssys.nim @@ -485,7 +485,7 @@ proc negInt64(a: int64): int64 {.compilerproc.} = result = a*(-1) proc nimFloatToString(a: float): cstring {.compilerproc.} = - ## ensures the result doesn't print like an integer, ie return 2.0, not 2 + ## ensures the result doesn't print like an integer, i.e. return 2.0, not 2 asm """ function nimOnlyDigitsOrMinus(n) { return n.toString().match(/^-?\d+$/); diff --git a/lib/system/strmantle.nim b/lib/system/strmantle.nim index 21b790603..fa6ff411b 100644 --- a/lib/system/strmantle.nim +++ b/lib/system/strmantle.nim @@ -113,7 +113,7 @@ when defined(nimHasInvariant): proc nimParseBiggestFloat(s: string, number: var BiggestFloat, start = 0): int {.compilerproc.} = # This routine attempt to parse float that can parsed quickly. - # ie whose integer part can fit inside a 53bits integer. + # i.e. whose integer part can fit inside a 53bits integer. # their real exponent must also be <= 22. If the float doesn't follow # these restrictions, transform the float into this form: # INTEGER * 10 ^ exponent and leave the work to standard `strtod()`. |