Skip to content

Commit 09a6710

Browse files
committed
News and compat annotation for #29997 (parse(Bool, str)).
1 parent 4b4747d commit 09a6710

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ Standard library changes
7979
* `mean` and `var` now handles the empty case ([#29033]).
8080
* New `sort!(::AbstractArray; dims)` method that can sort the array along the `dims` dimension ([#28902]).
8181
* `range` now accept `stop` as a positional argument ([#28708]).
82+
* `parse(Bool, str)` is now supported ([#29997]).
8283

8384
Compiler/Runtime improvements
8485
-----------------------------

base/parse.jl

Lines changed: 3 additions & 0 deletions
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)