Skip to content

Commit 67e072a

Browse files
authored
docs: Fix typos in string module docs (#1913)
1 parent 651aeeb commit 67e072a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/modules/string.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ strings section of your rule.
2121

2222
*Example: string.to_int("1234") == 1234*
2323
*Example: string.to_int("-10") == -10*
24-
*Example: string.to_int("-010" == -8*
24+
*Example: string.to_int("-010") == -8*
2525

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

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

3838
.. c:function:: length(string)
3939

0 commit comments

Comments
 (0)