fix comment error in schema-edges.md (#238)

This commit is contained in:
Jeremy
2019-12-14 00:14:07 +08:00
committed by Ariel Mashraki
parent 1311f5f2f2
commit 59ddab244d

View File

@@ -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).