Skip to content
This repository has been archived by the owner on Nov 8, 2017. It is now read-only.

Commit

Permalink
Update Int type description to match implementation
Browse files Browse the repository at this point in the history
This commits updates the `GraphQLInt` type description to match the changes made in 06f97b6.

Commit:
611f4b1d473907fde31c99a6008f5ef387836a14 [611f4b1]
Parents:
a6bcc75d3c
Author:
Ben Johnson <[email protected]>
Date:
4 December 2015 at 3:43:09 AM SGT
  • Loading branch information
sogko committed Mar 14, 2016
1 parent c129ede commit 68e94af
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scalars.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ func coerceInt(value interface{}) interface{} {
var Int *Scalar = NewScalar(ScalarConfig{
Name: "Int",
Description: "The `Int` scalar type represents non-fractional signed whole numeric " +
"values. Int can represent values between -(2^53 - 1) and 2^53 - 1 since " +
"represented in JSON as double-precision floating point numbers specified" +
"by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).",
"values. Int can represent values between -(2^31) and 2^31 - 1. ",
Serialize: coerceInt,
ParseValue: coerceInt,
ParseLiteral: func(valueAST ast.Value) interface{} {
Expand Down

0 comments on commit 68e94af

Please sign in to comment.