doc: replace CreateX reference to SaveX (#882)

This commit is contained in:
Aleksandr Razumov
2020-10-25 20:53:40 +03:00
committed by GitHub
parent 7aa41b88f6
commit 99d237ff98
3 changed files with 3 additions and 3 deletions

View File

@@ -615,7 +615,7 @@ func Do(ctx context.Context, client *ent.Client) error {
// / \
// 3 5
//
// Unlike `Create`, `CreateX` panics if an error occurs.
// Unlike `Save`, `SaveX` panics if an error occurs.
n1 := client.Node.
Create().
SetValue(1).

View File

@@ -53,7 +53,7 @@ func Do(ctx context.Context, client *ent.Client) error {
// 3 5
//
// Unlike `Create`, `CreateX` panics if an error occurs.
// Unlike `Save`, `SaveX` panics if an error occurs.
n1 := client.Node.
Create().
SetValue(1).