Skip to content

Commit 043521a

Browse files
committed
Fixed grammar in Stream section.
1 parent b9728a3 commit 043521a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ List<Project> allProjects = projectPager.all();
141141

142142
---
143143
## Java 8 Stream Support
144-
As of GitLab4J-API 4.9.2, all GitLabJ-API methods that return a List result also similarlly named method returns a Java 8 Stream. The Stream returning methods use the following naming convention: ```getXxxxxStream()```.
144+
As of GitLab4J-API 4.9.2, all GitLabJ-API methods that return a List result have a similarlly named method that returns a Java 8 Stream. The Stream returning methods use the following naming convention: ```getXxxxxStream()```.
145145

146146

147147
**IMPORTANT**
@@ -159,7 +159,7 @@ projectStream.map(Project::getName).forEach(name -> System.out.println(name));
159159

160160
// Operate on the stream in parallel, this example sorts User instances by username
161161
// NOTE: Fetching of the users is not done in paralell,
162-
// only the soprting of the users is a paralell operation.
162+
// only the sorting of the users is a paralell operation.
163163
Stream<User> stream = gitlabApi.getUserApi().getUsersStream();
164164
List<User> users = stream.parallel().sorted(comparing(User::getUsername)).collect(toList());
165165
```

0 commit comments

Comments
 (0)