Skip to content

Commit

Permalink
Fix typos in docstrings for in and (JuliaLang#53443)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonp0420 authored and mkitti committed Mar 7, 2024
1 parent 286277f commit 86885c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,7 @@ or `k in keys(dict)`. For the collections mentioned above,
the result is always a `Bool`.
When broadcasting with `in.(items, collection)` or `items .∈ collection`, both
`item` and `collection` are broadcasted over, which is often not what is intended.
`items` and `collection` are broadcasted over, which is often not what is intended.
For example, if both arguments are vectors (and the dimensions match), the result is
a vector indicating whether each value in collection `items` is `in` the value at the
corresponding position in `collection`. To get a vector indicating whether each value
Expand Down Expand Up @@ -1451,7 +1451,7 @@ in
Negation of `∈` and `∋`, i.e. checks that `item` is not in `collection`.
When broadcasting with `items .∉ collection`, both `item` and `collection` are
When broadcasting with `items .∉ collection`, both `items` and `collection` are
broadcasted over, which is often not what is intended. For example, if both arguments
are vectors (and the dimensions match), the result is a vector indicating whether
each value in collection `items` is not in the value at the corresponding position
Expand Down

0 comments on commit 86885c5

Please sign in to comment.