Skip to content

Commit ce8a983

Browse files
authored
Fix "Results Paging" code example in README.md (gitlab4j#938)
1 parent dc0f9f2 commit ce8a983

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
@@ -175,10 +175,10 @@ GitLab4J-API provides an easy to use paging mechanism to page through lists of r
175175
Here are a couple of examples on how to use the Pager:
176176
```java
177177
// Get a Pager instance that will page through the projects with 10 projects per page
178-
Pager<Project> projectPager = gitlabApi.getProjectsApi().getProjects(10);
178+
Pager<Project> projectPager = gitLabApi.getProjectApi().getProjects(10);
179179

180180
// Iterate through the pages and print out the name and description
181-
while (projectsPager.hasNext())) {
181+
while (projectPager.hasNext()) {
182182
for (Project project : projectPager.next()) {
183183
System.out.println(project.getName() + " -: " + project.getDescription());
184184
}

0 commit comments

Comments
 (0)