Skip to content

Commit

Permalink
Fixing getting-started documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
hh committed May 19, 2019
1 parent 4f163cb commit 9d332a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/content/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ import (
)

type Resolver struct {
todos []Todo
todos []*Todo
}

func (r *Resolver) Mutation() MutationResolver {
Expand All @@ -189,7 +189,7 @@ func (r *mutationResolver) CreateTodo(ctx context.Context, input NewTodo) (*Todo
ID: fmt.Sprintf("T%d", rand.Int()),
UserID: input.UserID,
}
r.todos = append(r.todos, *todo)
r.todos = append(r.todos, todo)
return todo, nil
}

Expand Down

0 comments on commit 9d332a7

Please sign in to comment.