Skip to content

Commit

Permalink
Make parse position accept an Integer (JuliaLang#28139)
Browse files Browse the repository at this point in the history
  • Loading branch information
omus authored and ararslan committed Jul 16, 2018
1 parent 5b4d203 commit 58a8248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/meta.jl
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ julia> Meta.parse("x = 3, y = 5", 5)
(:((3, y) = 5), 13)
```
"""
function parse(str::AbstractString, pos::Int; greedy::Bool=true, raise::Bool=true,
function parse(str::AbstractString, pos::Integer; greedy::Bool=true, raise::Bool=true,
depwarn::Bool=true)
# pos is one based byte offset.
# returns (expr, end_pos). expr is () in case of parse error.
Expand Down

0 comments on commit 58a8248

Please sign in to comment.