Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua James Venter <[email protected]>
  • Loading branch information
jjvraw committed Aug 2, 2024
1 parent 971259d commit 4500c21
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions stdlib/src/builtin/string.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,7 @@ fn _stol(str_slice: StringSlice, base: Int = 10) raises -> (Int, String):
start += 1 # Move past the prefix character
else:
# Invalid prefix or digit after prefix
return 0, String(
str_slice.unsafe_ptr() + start
)
return 0, String(str_slice.unsafe_ptr() + start)
else:
real_base = 10
has_prefix = real_base != 10
Expand Down

0 comments on commit 4500c21

Please sign in to comment.