Skip to content

Commit 0601916

Browse files
raman-makerfredrikekrefingolfin
authored
doc: fewer methods of Bool to show now (JuliaLang#59926)
Update to auto-generate the doc to stay always accurate. Co-authored-by: Fredrik Ekre <[email protected]> Co-authored-by: Max Horn <[email protected]>
1 parent 6f7f424 commit 0601916

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

doc/src/manual/constructors.md

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -583,29 +583,8 @@ method. This includes types, i.e., objects of type [`Type`](@ref); and construct
583583
in fact, be viewed as just callable type objects. For example, there are many methods
584584
defined on `Bool` and various supertypes of it:
585585

586-
```julia-repl
587-
julia> methods(Bool)
588-
# 10 methods for type constructor:
589-
[1] Bool(x::BigFloat)
590-
@ Base.MPFR mpfr.jl:393
591-
[2] Bool(x::Float16)
592-
@ Base float.jl:338
593-
[3] Bool(x::Rational)
594-
@ Base rational.jl:138
595-
[4] Bool(x::Real)
596-
@ Base float.jl:233
597-
[5] (dt::Type{<:Integer})(ip::Sockets.IPAddr)
598-
@ Sockets ~/tmp/jl/jl/julia-nightly-assert/share/julia/stdlib/v1.11/Sockets/src/IPAddr.jl:11
599-
[6] (::Type{T})(x::Enum{T2}) where {T<:Integer, T2<:Integer}
600-
@ Base.Enums Enums.jl:19
601-
[7] (::Type{T})(z::Complex) where T<:Real
602-
@ Base complex.jl:44
603-
[8] (::Type{T})(x::Base.TwicePrecision) where T<:Number
604-
@ Base twiceprecision.jl:265
605-
[9] (::Type{T})(x::T) where T<:Number
606-
@ boot.jl:894
607-
[10] (::Type{T})(x::AbstractChar) where T<:Union{AbstractChar, Number}
608-
@ char.jl:50
586+
```@repl
587+
methods(Bool)
609588
```
610589

611590
The usual constructor syntax is exactly equivalent to the function-like object

0 commit comments

Comments
 (0)