Skip to content

Commit 06c2093

Browse files
committed
CallingOps: note that mutate{#} is 1-indexed
1 parent 857e10c commit 06c2093

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/ops/doc/CallingOps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Calling our Gaussian blur as a *computer* above is great when we have pre-alloca
6060
var outImage = ops.op("filter.gauss").input(inImage, 2.0).apply()
6161
```
6262

63-
*Inplaces* are used when we want to destructively modify one of the existing inputs (which is explicitly forbidden by *computers*; a *computer* Op's output should be a different object from all of its inputs). We indicate this by the `mutate#()` method, where the `#` corresponds to the *parameter index* that will be modified:
63+
*Inplaces* are used when we want to destructively modify one of the existing inputs (which is explicitly forbidden by *computers*; a *computer* Op's output should be a different object from all of its inputs). We indicate this by the `mutate#()` method, where the `#` corresponds to the *parameter index* (starting from 1 for the first parameter) that will be modified:
6464

6565
```java
6666
// Modify the first input in-place

0 commit comments

Comments
 (0)