From 1e9c33cc79533cf3a104df320be8735a0c0ab640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Barrera?= Date: Wed, 1 Nov 2017 11:30:40 +0000 Subject: [PATCH] Fix minor typo in protection.md The method called to update a branch's protection should be update not show --- doc/repo/protection.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/repo/protection.md b/doc/repo/protection.md index 6fed148096b..9ba596dca1a 100644 --- a/doc/repo/protection.md +++ b/doc/repo/protection.md @@ -31,7 +31,7 @@ $params = [ 'enforce_admins' => true, 'restrictions' => null, ]; -$protection = $client->api('repo')->protection()->show('twbs', 'bootstrap', 'master', $params); +$protection = $client->api('repo')->protection()->update('twbs', 'bootstrap', 'master', $params); ``` ### Remove branch protection