From 59ddab244d9c16a5aa8bfdd37a0ea7b69b570bf8 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sat, 14 Dec 2019 00:14:07 +0800 Subject: [PATCH] fix comment error in schema-edges.md (#238) --- doc/md/schema-edges.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/md/schema-edges.md b/doc/md/schema-edges.md index 06fb3a009..539c9b0ce 100755 --- a/doc/md/schema-edges.md +++ b/doc/md/schema-edges.md @@ -198,7 +198,7 @@ func (User) Edges() []ent.Edge { `ent/schema/card.go` ```go -// Edges of the user. +// Edges of the Card. func (Card) Edges() []ent.Edge { return []ent.Edge{ edge.From("owner", User.Type). @@ -868,7 +868,7 @@ The full example exists in [GitHub](https://github.com/facebookincubator/ent/tre Edges can be defined as required in the entity creation using the `Required` method on the builder. ```go -// Edges of the user. +// Edges of the Card. func (Card) Edges() []ent.Edge { return []ent.Edge{ edge.From("owner", User.Type).