From 6188f4ba765fe2034c25cfcc0b195940471fdd8f Mon Sep 17 00:00:00 2001 From: Oliver Date: Sat, 14 Feb 2015 16:51:16 +0100 Subject: [PATCH] Update contents.md --- doc/repo/contents.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/repo/contents.md b/doc/repo/contents.md index 6307f5d449b..56967101ac6 100644 --- a/doc/repo/contents.md +++ b/doc/repo/contents.md @@ -31,7 +31,7 @@ $fileInfo = $client->api('repo')->contents()->create('knp-labs', 'php-github-api $committer = array('name' => 'KnpLabs', 'email' => 'info@knplabs.com'); $oldFile = $client->api('repo')->contents()->show('knp-labs', 'php-github-api', $path, $branch); -$fileInfo = $client->api('repo')->contents()->create('knp-labs', 'php-github-api', $path, $content, $commitMessage, $oldFile['sha'], $branch, $committer); +$fileInfo = $client->api('repo')->contents()->update('knp-labs', 'php-github-api', $path, $content, $commitMessage, $oldFile['sha'], $branch, $committer); ``` ### Remove a file