Skip to content

Commit b18a62d

Browse files
authored
Fix formatting & typo in methods.md (#53486)
* Fixed what I suspect is a typo: commonly -> common * Added code quotes to eltype: eltype -> `eltype` Sentence now reads: Instead, common code will dispatch first on the container type, then recurse down to a more specific method based on `eltype`.
1 parent 2b79326 commit b18a62d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/src/manual/methods.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -745,8 +745,8 @@ often it is best to separate each level of dispatch into distinct functions.
745745
This may sound similar in approach to single-dispatch, but as we shall see below, it is still more flexible.
746746

747747
For example, trying to dispatch on the element-type of an array will often run into ambiguous situations.
748-
Instead, commonly code will dispatch first on the container type,
749-
then recurse down to a more specific method based on eltype.
748+
Instead, common code will dispatch first on the container type,
749+
then recurse down to a more specific method based on `eltype`.
750750
In most cases, the algorithms lend themselves conveniently to this hierarchical approach,
751751
while in other cases, this rigor must be resolved manually.
752752
This dispatching branching can be observed, for example, in the logic to sum two matrices:

0 commit comments

Comments
 (0)