Skip to content

Commit 0862a59

Browse files
committed
Update comment
1 parent 23123b2 commit 0862a59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fillbroadcast.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ has_static_value(x::Broadcast.Broadcasted) = all(has_static_value, x.args)
101101
function _iszeros(bc::Broadcast.Broadcasted)
102102
all(has_static_value, bc.args) && _iszero(_getindex_value(bc))
103103
end
104-
# conservative check for zeros. In most cases we can't really compare with zero
104+
# conservative check for zeros. In most cases, there isn't a zero element to compare with
105105
_iszero(x::Union{Number, AbstractArray}) = iszero(x)
106106
_iszero(_) = false
107107

108108
function _isones(bc::Broadcast.Broadcasted)
109109
all(has_static_value, bc.args) && _isone(_getindex_value(bc))
110110
end
111-
# conservative check for ones. In most cases we can't really compare with one
111+
# conservative check for ones. In most cases, there isn't a unit element to compare with
112112
_isone(x::Union{Number, AbstractArray}) = isone(x)
113113
_isone(_) = false
114114

0 commit comments

Comments
 (0)