Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nitely committed May 7, 2020
1 parent c21b6a1 commit 02bdbb0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/strunicode.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Swift-like unicode string handling.
## Most (all?) API operations take linear time,
## but in exchange they take constant space.
## and constant space.
##
## Beware, a sequence of ``Character``
## may take 10 times as much space as a utf-8 string,
Expand Down Expand Up @@ -108,7 +108,6 @@ func `==`*(a: Unicode, b: openArray[char]): bool {.inline.} =
func count*(s: Unicode): int {.inline.} =
## Return the number of
## characters in the string
## Check strings are canonically equivalent
runnableExamples:
doAssert "🇦🇷🇺🇾🇨🇱".Unicode.count == 3
graphemesCount(s.string)
Expand Down

0 comments on commit 02bdbb0

Please sign in to comment.