Skip to content

Commit 55dddad

Browse files
authored
make dot docstring match the implementation
1 parent b7fd696 commit 55dddad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ vector is conjugated.
938938
`dot` also works on arbitrary iterable objects, including arrays of any dimension,
939939
as long as `dot` is defined on the elements.
940940
941-
`dot` is semantically equivalent to `sum(dot(vx,vy) for (vx,vy) in zip(x, y))`,
941+
`dot` is semantically equivalent to `reduce(+, dot(vx,vy) for (vx,vy) in zip(x, y))`,
942942
with the added restriction that the arguments must have equal lengths.
943943
944944
`x ⋅ y` (where `⋅` can be typed by tab-completing `\\cdot` in the REPL) is a synonym for

0 commit comments

Comments
 (0)