diff options
Diffstat (limited to 'compiler/strutils2.nim')
-rw-r--r-- | compiler/strutils2.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/strutils2.nim b/compiler/strutils2.nim index 6cb50347f..f44b811c7 100644 --- a/compiler/strutils2.nim +++ b/compiler/strutils2.nim @@ -12,7 +12,7 @@ proc dataPointer*[T](a: T): pointer = ## same as C++ `data` that works with std::string, std::vector etc. ## Note: safe to use when a.len == 0 but whether the result is nil or not ## is implementation defined for performance reasons. - # this could be improved with ocmpiler support to avoid the `if`, eg in C++ + # this could be improved with ocmpiler support to avoid the `if`, e.g. in C++ # `&a[0]` is well defined even if a.size() == 0 when T is string | seq: if a.len == 0: nil else: cast[pointer](a[0].unsafeAddr) |