Skip to content

Commit f560ec7

Browse files
authored
Quick fix variable type in the description (#2524)
1 parent ca2d2bc commit f560ec7

File tree

1 file changed

+1
-1
lines changed
  • exercises/practice/hamming/.approaches/intstream-reduce

1 file changed

+1
-1
lines changed

exercises/practice/hamming/.approaches/intstream-reduce/content.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class Hamming {
2828
```
2929

3030
This approach starts by importing `java.util.stream.IntStream`.
31-
It then defines a [`private`][private] [`final`][final] `long` variable to keep track of the difference between the strands.
31+
It then defines a [`private`][private] [`final`][final] `int` variable to keep track of the difference between the strands.
3232

3333
After the validation code, the real work is done by the [`IntStream`][intstream].
3434
It uses its [`range()`][range] method to iterate from `0` up to but not including the length of the left strand.

0 commit comments

Comments
 (0)