Skip to content

Commit

Permalink
doc/interface: correct signature of size (#29094)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0c73ad1)
  • Loading branch information
iblislin authored and KristofferC committed Feb 11, 2019
1 parent 97704c0 commit 9d3530b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/src/manual/interfaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ to generically build upon those behaviors.
| `IteratorEltype(IterType)` | `HasEltype()` | Either `EltypeUnknown()` or `HasEltype()` as appropriate |
| `eltype(IterType)` | `Any` | The type of the first entry of the tuple returned by `iterate()` |
| `length(iter)` | (*undefined*) | The number of items, if known |
| `size(iter, [dim...])` | (*undefined*) | The number of items in each dimension, if known |
| `size(iter, [dim])` | (*undefined*) | The number of items in each dimension, if known |

| Value returned by `IteratorSize(IterType)` | Required Methods |
|:------------------------------------------ |:------------------------------------------ |
| `HasLength()` | [`length(iter)`](@ref) |
| `HasShape{N}()` | `length(iter)` and `size(iter, [dim...])` |
| `HasShape{N}()` | `length(iter)` and `size(iter, [dim])` |
| `IsInfinite()` | (*none*) |
| `SizeUnknown()` | (*none*) |

Expand Down

0 comments on commit 9d3530b

Please sign in to comment.