Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
booniepepper authored May 18, 2021
1 parent 569b30b commit 210af18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ int sum = asciiSum.apply("abc");
Function combination using a lambda

```java
// Inference (e.g. with var) is not possible
ToIntFunction<String> asciiSum = s -> s.chars().sum();

// Capturing with var is not possible
int sum = asciiSum.applyAsInt("abc");
```

Expand Down

0 comments on commit 210af18

Please sign in to comment.