Browse Source

Off-by-ones on data sizes in documentation (#57735)

Fixes exponent off-by-ones in Painless documentation for int and long.
Matthias Gärtner 5 years ago
parent
commit
f760d327f8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      docs/painless/painless-lang-spec/painless-types.asciidoc

+ 2 - 2
docs/painless/painless-lang-spec/painless-types.asciidoc

@@ -46,13 +46,13 @@ The following primitive types are available:
 
 `int`::
 32-bit, signed, two's complement integer
-* range: [`-2^32`, `2^32-1`]
+* range: [`-2^31`, `2^31-1`]
 * default value: `0`
 * reference type: `Integer`
 
 `long`::
 64-bit, signed, two's complement integer
-* range: [`-2^64`, `2^64-1`]
+* range: [`-2^63`, `2^63-1`]
 * default value: `0`
 * reference type: `Long`