summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorYuriy Glukhov <yglukhov@users.noreply.github.com>2018-11-20 13:50:08 +0200
committerArne Döring <arne.doering@gmx.net>2018-11-20 12:50:08 +0100
commitd146516008973232b690c977b238af487a809541 (patch)
treef052ca925f8c4201af91e9dac94abd742f99c413 /lib/pure
parente8bec614131957e7bd8b9f377ba4a08aa762309c (diff)
downloadNim-d146516008973232b690c977b238af487a809541.tar.gz
Fixed wording (#9761)
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/unicode.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/pure/unicode.nim b/lib/pure/unicode.nim
index e16c185d4..664765954 100644
--- a/lib/pure/unicode.nim
+++ b/lib/pure/unicode.nim
@@ -231,7 +231,7 @@ proc runeOffset*(s: string, pos:Natural, start: Natural = 0): int =
   ## returns the special value -1 if it runs out of the string
   ##
   ## Beware: This can lead to unoptimized code and slow execution!
-  ## Most problems are solve more efficient by using an iterator
+  ## Most problems can be solved more efficiently by using an iterator
   ## or conversion to a seq of Rune.
   var
     i = 0
@@ -247,7 +247,7 @@ proc runeAtPos*(s: string, pos: int): Rune =
   ## Returns the unicode character at position pos
   ##
   ## Beware: This can lead to unoptimized code and slow execution!
-  ## Most problems are solve more efficient by using an iterator
+  ## Most problems can be solved more efficiently by using an iterator
   ## or conversion to a seq of Rune.
   fastRuneAt(s, runeOffset(s, pos), result, false)
 
@@ -255,7 +255,7 @@ proc runeStrAtPos*(s: string, pos: Natural): string =
   ## Returns the unicode character at position pos as UTF8 String
   ##
   ## Beware: This can lead to unoptimized code and slow execution!
-  ## Most problems are solve more efficient by using an iterator
+  ## Most problems can be solved more efficiently by using an iterator
   ## or conversion to a seq of Rune.
   let o = runeOffset(s, pos)
   s[o.. (o+runeLenAt(s, o)-1)]
@@ -269,7 +269,7 @@ proc runeReverseOffset*(s: string, rev:Positive): (int, int) =
   ## satisfy the request.
   ##
   ## Beware: This can lead to unoptimized code and slow execution!
-  ## Most problems are solve more efficient by using an iterator
+  ## Most problems can be solved more efficiently by using an iterator
   ## or conversion to a seq of Rune.
   var
     a = rev.int