From 784eba86b220452da6d356296ecb15366c388307 Mon Sep 17 00:00:00 2001 From: hanbj Date: Mon, 15 Jan 2018 22:09:27 +0800 Subject: [PATCH] [Docs] Fix an error in painless-types.asciidoc (#28221) --- docs/painless/painless-types.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/painless/painless-types.asciidoc b/docs/painless/painless-types.asciidoc index 36cf78312ea..9e5077503b4 100644 --- a/docs/painless/painless-types.asciidoc +++ b/docs/painless/painless-types.asciidoc @@ -311,7 +311,7 @@ to floating point types. | int | explicit | explicit | explicit | | implicit | implicit | implicit | long | explicit | explicit | explicit | explicit | | implicit | implicit | float | explicit | explicit | explicit | explicit | explicit | | implicit -| float | explicit | explicit | explicit | explicit | explicit | explicit | +| double | explicit | explicit | explicit | explicit | explicit | explicit | |==== @@ -376,7 +376,7 @@ cast would normally be required between the non-def types. def x; // Declare def variable x and set it to null x = 3; // Set the def variable x to the literal 3 with an implicit // cast from int to def -double a = x; // Declare double variable y and set it to def variable x, +double a = x; // Declare double variable a and set it to def variable x, // which contains a double int b = x; // ERROR: Results in a run-time error because an explicit cast is // required to cast from a double to an int