Skip to content

Commit 62d3824

Browse files
committed
Merge pull request #241 from AlphawolfWMP/patch-1
Update contents.md
2 parents d49e341 + 6188f4b commit 62d3824

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)