Correct function examples
This commit is contained in:
1 parent
6eeb638ad7
commit
961d283fd6
1 file changed
+2
-2
+2
-2
@@ -13,8 +13,8 @@ def convert_string_to_integer(data: str) -> int | Exception:
|
|||||||
:return: The converted integer value or exception object
|
:return: The converted integer value or exception object
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
>>> safe_int_from_string("4")
|
>>> convert_string_to_integer("4")
|
||||||
>>> safe_int_from_string("3.0")
|
>>> convert_string_to_integer("3.0")
|
||||||
"""
|
"""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in new issue
Block a user