From 5368e5c54e934521ce3f90cb2e037b95c6471f45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Zapa=C5=9Bnik?= <9281806+adamzapasnik@users.noreply.github.com> Date: Sat, 30 Sep 2023 11:25:38 +0300 Subject: [PATCH] doc: fix example in docs/crud/#create-many (#3770) --- doc/md/crud.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/md/crud.mdx b/doc/md/crud.mdx index a05803481..3758535eb 100644 --- a/doc/md/crud.mdx +++ b/doc/md/crud.mdx @@ -168,7 +168,7 @@ pets, err := client.Pet.CreateBulk( names := []string{"pedro", "xabi", "layla"} pets, err := client.Pet.MapCreateBulk(names, func(c *ent.PetCreate, i int) { - client.Pet.Create().SetName(names[i]).SetOwner(a8m) + c.SetName(names[i]).SetOwner(a8m) }).Save(ctx) ```