diff --git a/docs/content/reference/scalars.md b/docs/content/reference/scalars.md index 1092a7ebbb4..02ea1fb7aa0 100644 --- a/docs/content/reference/scalars.md +++ b/docs/content/reference/scalars.md @@ -49,7 +49,7 @@ Maps an arbitrary GraphQL value to a `interface{}` Go type. ## Custom scalars with user defined types -For user defined types you can implement the graphql.Marshal and graphql.Unmarshal interfaces and they will be called. +For user defined types you can implement the graphql.Marshaler and graphql.Unmarshaler interfaces and they will be called. ```go package mypkg @@ -62,7 +62,7 @@ import ( type YesNo bool -// UnmarshalGQL implements the graphql.Marshaler interface +// UnmarshalGQL implements the graphql.Unmarshaler interface func (y *YesNo) UnmarshalGQL(v interface{}) error { yes, ok := v.(string) if !ok {