Skip to content

Commit 293c904

Browse files
pdbartlettKeno
authored andcommitted
Correct typeof result for one of the Union types (JuliaLang#28843)
This union is type-equivalent to `Real`, so the output is a bit misleading, since this just evaluates `typeof(Real)` in disguised form. Remove as suggested by yuyichao.
1 parent 157fb34 commit 293c904

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎doc/src/manual/types.md‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,9 +1152,6 @@ what their types are:
11521152
julia> typeof(Rational{Int})
11531153
DataType
11541154
1155-
julia> typeof(Union{Real,Float64,Rational})
1156-
DataType
1157-
11581155
julia> typeof(Union{Real,String})
11591156
Union
11601157
```

0 commit comments

Comments
 (0)