Skip to content

Commit

Permalink
docs: Fix typos in string module docs (#1913)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatejKastak committed Apr 18, 2023
1 parent 651aeeb commit 67e072a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/modules/string.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ strings section of your rule.

*Example: string.to_int("1234") == 1234*
*Example: string.to_int("-10") == -10*
*Example: string.to_int("-010" == -8*
*Example: string.to_int("-010") == -8*

.. c:function:: to_int(string, base)
Expand All @@ -32,8 +32,8 @@ strings section of your rule.
the string will be intrepreted as base 16 if it starts with "0x" or as base
8 if it starts with "0". Leading '+' or '-' is also supported.

*Example: string.to_int("011", 8) == "9"*
*Example: string.to_int("-011", 0) == "-9"*
*Example: string.to_int("011", 8) == 9*
*Example: string.to_int("-011", 0) == -9*

.. c:function:: length(string)
Expand Down

0 comments on commit 67e072a

Please sign in to comment.