Skip to content

Commit d2fe63b

Browse files
committed
rename
1 parent d73c1d8 commit d2fe63b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

java/src/main/java/v/o/i/d/monadsplain/Three.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ public IntegerWithHistory square(IntegerWithHistory i) {
2626
);
2727
}
2828

29-
public IntegerWithHistory addOne(IntegerWithHistory i) {
29+
public IntegerWithHistory increment(IntegerWithHistory i) {
3030
return new IntegerWithHistory(
3131
i.value + 1,
32-
join(i.history, "addOne: " + i.value)
32+
join(i.history, "increment: " + i.value)
3333
);
3434
}
3535

3636
public void run() {
37-
IntegerWithHistory i = addOne(square(IntegerWithHistory.wrap(3)));
37+
IntegerWithHistory i = increment(square(IntegerWithHistory.wrap(3)));
3838
System.out.println(i.value);
3939
System.out.println(Arrays.toString(i.history));
4040
}

0 commit comments

Comments
 (0)