Skip to content

Commit 58597ec

Browse files
committed
fix(calculator): correct add method
1 parent 1286ca0 commit 58597ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/thealgorithms/calculator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
public class calculator {
44
public int add(int a, int b) {
55
System.out.println("Adding numbers");
6-
return a + b; // different change
6+
return a + b+1; // different change
77
}
88

99

0 commit comments

Comments
 (0)