Skip to content

Commit

Permalink
[Docs] Fix an error in painless-types.asciidoc (#28221)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbj authored and Christoph Büscher committed Jan 15, 2018
1 parent 4ce90d1 commit 9875fd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/painless/painless-types.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
|====


Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9875fd2

Please sign in to comment.