Skip to content

Commit

Permalink
add a note in strutils.nimIdentNormalize
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mr committed Oct 20, 2021
1 parent b047fba commit 014df3e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/pure/strutils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,11 @@ func nimIdentNormalize*(s: string): string =
##
## That means to convert to lower case and remove any '_' on all characters
## except first one.
##
## .. Warning:: Backticks (`) are not handled: they remain *as is* and
## spaces are preserved. See `nimIdentBackticksNormalize
## <dochelpers.html#nimIdentBackticksNormalize,string>`_ for
## an alternative approach.
runnableExamples:
doAssert nimIdentNormalize("Foo_bar") == "Foobar"
result = newString(s.len)
Expand Down

0 comments on commit 014df3e

Please sign in to comment.