Skip to content

Commit 97a1edf

Browse files
committed
News and compat annotation for #29997 (parse(Bool, str)).
1 parent 9188bf6 commit 97a1edf

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

NEWS.md

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Standard library changes
7676
* `mean` and `var` now handles the empty case ([#29033]).
7777
* New `sort!(::AbstractArray; dims)` method that can sort the array along the `dims` dimension ([#28902]).
7878
* `range` now accept `stop` as a positional argument ([#28708]).
79+
* `parse(Bool, str)` is now supported ([#29997]).
7980

8081
Compiler/Runtime improvements
8182
-----------------------------

base/parse.jl

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ of the form `"R±Iim"` as a `Complex(R,I)` of the requested type; `"i"` or `"j"`
1414
used instead of `"im"`, and `"R"` or `"Iim"` are also permitted.
1515
If the string does not contain a valid number, an error is raised.
1616
17+
!!! compat "Julia 1.1"
18+
`parse(Bool, str)` requires at least Julia 1.1.
19+
1720
# Examples
1821
```jldoctest
1922
julia> parse(Int, "1234")

0 commit comments

Comments
 (0)