Skip to content

Commit

Permalink
doc: add a missing word in "Trait-based dispatch" section (#40012)
Browse files Browse the repository at this point in the history
  • Loading branch information
hp-x360-chomebook-2019 authored Mar 18, 2021
1 parent 30594c7 commit 561819b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/src/manual/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ other functions such as `map` can dispatch on this information to pick
the best algorithm (see [Abstract Array Interface](@ref man-interface-array)).
This means that each subtype does not need to implement a custom version of `map`,
since the generic definitions + trait classes will enable the system to select the fastest version.
Here a toy implementation of `map` illustrating the trait-based dispatch:
Here is a toy implementation of `map` illustrating the trait-based dispatch:

```julia
map(f, a::AbstractArray, b::AbstractArray) = map(Base.IndexStyle(a, b), f, a, b)
Expand Down

0 comments on commit 561819b

Please sign in to comment.