Fix jerry_value_is_{true,false} documentation (#4803)

The API doc for jerry_value_is_{true,false} incorrectly stated
that it is a replacment for the `jerry_value_is_boolean` method.
The `jerry_value_is_true` is the direct replacement of the
`jerry_get_boolean_value` method and the "false" version is a new
method.

JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
This commit is contained in:
Péter Gál 2021-10-26 09:43:51 +02:00 committed by GitHub
parent 100b6f577e
commit 499cdea75c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2424,7 +2424,7 @@ jerry_value_is_true (const jerry_value_t value);
- true, if the given `jerry_value_t` is true value
- false, otherwise
*New in version [[NEXT_RELEASE]]*. Replaces the `jerry_value_is_boolean` method.
*New in version [[NEXT_RELEASE]]*. Replaces the `jerry_get_boolean_value` method.
**Example**
@ -2464,7 +2464,7 @@ jerry_value_is_false (const jerry_value_t value);
- true, if the given `jerry_value_t` is false value
- false, otherwise
*New in version [[NEXT_RELEASE]]*. Replaces the `jerry_value_is_boolean` method.
*New in version [[NEXT_RELEASE]]*.
**Example**