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