Skip to content

Commit 1e9c33c

Browse files
authored
Fix minor typo in protection.md
The method called to update a branch's protection should be update not show
1 parent 5d7cb70 commit 1e9c33c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/repo/protection.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $params = [
3131
'enforce_admins' => true,
3232
'restrictions' => null,
3333
];
34-
$protection = $client->api('repo')->protection()->show('twbs', 'bootstrap', 'master', $params);
34+
$protection = $client->api('repo')->protection()->update('twbs', 'bootstrap', 'master', $params);
3535
```
3636

3737
### Remove branch protection

0 commit comments

Comments
 (0)