Skip to content

Commit 16a8f39

Browse files
committed
Fix type annotation and clean up examples
1 parent dc0b0df commit 16a8f39

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

base/docs/basedocs.jl

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ The singleton type containing only the value `Union{}` (which represents the emp
11511151
Core.TypeofBottom
11521152

11531153
"""
1154-
Core.Type{T} where T
1154+
Core.Type{T}
11551155
11561156
`Core.Type` is an abstract type which has all type objects as its instances.
11571157
The only instance of the singleton type `Core.Type{T} where T` is the object
@@ -1165,23 +1165,11 @@ true
11651165
julia> isa(Float64, Type)
11661166
true
11671167
1168-
julia> isa(1, Type)
1169-
false
1170-
1171-
julia> isa("foo", Type)
1172-
false
1173-
1174-
julia> isa(Float64, Type{Float64})
1175-
true
1176-
11771168
julia> isa(Real, Type{Float64})
11781169
false
11791170
11801171
julia> isa(Real, Type{Real})
11811172
true
1182-
1183-
julia> isa(Float64, Type{Real})
1184-
false
11851173
```
11861174
"""
11871175
Core.Type
@@ -1208,14 +1196,6 @@ julia> struct Point
12081196
12091197
julia> typeof(Point)
12101198
DataType
1211-
1212-
julia> fieldnames(Point)
1213-
2-element Array{Symbol,1}:
1214-
:x
1215-
:y
1216-
1217-
julia> Point.types
1218-
svec(Int64, Any)
12191199
```
12201200
"""
12211201
Core.DataType

0 commit comments

Comments
 (0)