Skip to content

Commit 51591ff

Browse files
author
Ikko Ashimine
authored
Fix typo in typelimits.jl (#40090)
occurence -> occurrence
1 parent 107901d commit 51591ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/compiler/typelimits.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function limit_type_size(@nospecialize(t), @nospecialize(compare), @nospecialize
2121
type_more_complex(t, compare, source, 1, allowed_tupledepth, allowed_tuplelen) || return t
2222
r = _limit_type_size(t, compare, source, 1, allowed_tuplelen)
2323
#@assert t <: r # this may fail if t contains a typevar in invariant and multiple times
24-
# in covariant position and r looses the occurence in invariant position (see #36407)
24+
# in covariant position and r looses the occurrence in invariant position (see #36407)
2525
if !(t <: r) # ideally, this should never happen
2626
# widen to minimum complexity to obtain a valid result
2727
r = _limit_type_size(t, Any, source, 1, allowed_tuplelen)

0 commit comments

Comments
 (0)