Skip to content

Commit 99ed0c7

Browse files
committed
Fixed documentation
1 parent 7fd1cb1 commit 99ed0c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/result_pager.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $client = new Github\Client();
1111
$organizationApi = $client->api('organization');
1212

1313
$paginator = new Github\ResultPager( $client );
14-
$result = $paginator->fetchAll( $organizationApi, 'repositories', 'github );
14+
$result = $paginator->fetchAll( $organizationApi, 'repositories', 'github' );
1515
```
1616

1717
Get the first page
@@ -21,7 +21,7 @@ $client = new Github\Client();
2121
$organizationApi = $client->api('organization');
2222

2323
$paginator = new Github\ResultPager( $client );
24-
$result = $paginator->fetch( $organizationApi, 'repositories', 'github );
24+
$result = $paginator->fetch( $organizationApi, 'repositories', 'github' );
2525
```
2626
Check for a next page:
2727
```php
@@ -35,7 +35,7 @@ $paginator->fetchNext();
3535

3636
Check for pervious page:
3737
```php
38-
$paginator->getPrevious();
38+
$paginator->hasPrevious();
3939
```
4040

4141
Get prevrious page:

0 commit comments

Comments
 (0)