Skip to content

Commit 6188f4b

Browse files
author
Oliver
committed
Update contents.md
1 parent d49e341 commit 6188f4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/repo/contents.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $fileInfo = $client->api('repo')->contents()->create('knp-labs', 'php-github-api
3131
$committer = array('name' => 'KnpLabs', 'email' => '[email protected]');
3232
$oldFile = $client->api('repo')->contents()->show('knp-labs', 'php-github-api', $path, $branch);
3333

34-
$fileInfo = $client->api('repo')->contents()->create('knp-labs', 'php-github-api', $path, $content, $commitMessage, $oldFile['sha'], $branch, $committer);
34+
$fileInfo = $client->api('repo')->contents()->update('knp-labs', 'php-github-api', $path, $content, $commitMessage, $oldFile['sha'], $branch, $committer);
3535
```
3636

3737
### Remove a file

0 commit comments

Comments
 (0)