Skip to content

Commit 93b2814

Browse files
committed
Sync resource creation documentation
1 parent 496d4a0 commit 93b2814

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎github/doc.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ https://docs.github.com/rest/using-the-rest-api/best-practices-for-using-the-res
169169
170170
# Creating and Updating Resources
171171
172-
When creating a repository, the required name is a value and optional fields
173-
use pointers. This allows distinguishing between unset optional fields and
174-
those set to a zero-value.
172+
Many resource and request structs use pointers for optional scalar fields. This
173+
allows distinguishing between unset fields and those set to a zero-value.
174+
Required fields such as [CreateRepositoryRequest.Name] use value types.
175175
Use the new builtin to easily create these pointers for string,
176176
bool, and int values. For example:
177177

0 commit comments

Comments
 (0)