Skip to content

Commit

Permalink
var changed to alias
Browse files Browse the repository at this point in the history
  • Loading branch information
jjvraw committed Jul 18, 2024
1 parent 87333f3 commit 5b8b424
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 @@ -235,9 +235,7 @@ fn _atol(str_slice: StringSlice, base: Int = 10) raises -> Int:
start, is_negative = _trim_and_handle_sign(str_slice, str_len)

alias ord_0 = ord("0")
# FIXME:
# Change this to `alias` after fixing support for __getitem__ of alias.
var ord_letter_min = (ord("a"), ord("A"))
alias ord_letter_min = (ord("a"), ord("A"))
alias ord_underscore = ord("_")

if base == 0:
Expand Down

0 comments on commit 5b8b424

Please sign in to comment.