Skip to content

Commit 903d7c1

Browse files
committed
OpTypes tutorial: fix op registration
1 parent ff0b696 commit 903d7c1

File tree

1 file changed

+1
-1
lines changed
  • scijava-ops-tutorial/src/main/java/org/scijava/ops/tutorial

1 file changed

+1
-1
lines changed

scijava-ops-tutorial/src/main/java/org/scijava/ops/tutorial/OpTypes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public Double apply(Double d1, Double d2) {
7373
}
7474
}
7575

76-
ops.register(SampleFunction.class);
76+
ops.register(new SampleFunction());
7777

7878
BiFunction<Double, Double, Double> sumOp = ops //
7979
// Look for a "math.add" op

0 commit comments

Comments
 (0)