Skip to content

Commit

Permalink
Fix method definition of BroadcastStyle in docs (JuliaLang#39686)
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed Feb 16, 2021
1 parent c48ae61 commit b1fbe7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/src/manual/interfaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ array types that have fixed dimensionality requirements.
BroadcastStyle(a::AbstractArrayStyle{Any}, ::DefaultArrayStyle) = a
BroadcastStyle(a::AbstractArrayStyle{N}, ::DefaultArrayStyle{N}) where N = a
BroadcastStyle(a::AbstractArrayStyle{M}, ::DefaultArrayStyle{N}) where {M,N} =
typeof(a)(_max(Val(M),Val(N)))
typeof(a)(Val(max(M, N)))
```

You do not need to write binary `BroadcastStyle`
Expand Down

0 comments on commit b1fbe7f

Please sign in to comment.