Skip to content

Commit 0d8c3c7

Browse files
committed
Update builtin.{txt,jax}
1 parent 0a29ca3 commit 0d8c3c7

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

doc/builtin.jax

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4988,12 +4988,13 @@ insert({object}, {item} [, {idx}]) *insert()*
49884988
<
49894989
*instanceof()* *E614* *E616* *E693*
49904990
instanceof({object}, {class})
4991-
結果は数値で、{object} 引数が {class} で指定された |Class| の
4992-
直接または間接インスタンスである場合に |TRUE| となる。
4993-
{class} が |List| の場合、{object} が指定されたクラスのいずれ
4994-
かのインスタンスであるとき、この関数は |TRUE| を返す。
4991+
結果は数値で、{object} 引数が {class} で指定された |Class|,
4992+
|Interface|, または、クラスの |:type| エイリアスの直接または間
4993+
接インスタンスである場合に |TRUE| となる。
4994+
{class} が可変長引数の場合、{object} が指定されたクラスのいず
4995+
れかのインスタンスであるとき、この関数は |TRUE| を返す。
49954996
例: >
4996-
instanceof(animal, [Dog, Cat])
4997+
instanceof(animal, Dog, Cat)
49974998

49984999
< |method| としても使用できる: >
49995000
myobj->instanceof(mytype)

en/builtin.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5058,12 +5058,12 @@ insert({object}, {item} [, {idx}]) *insert()*
50585058
*instanceof()* *E614* *E616* *E693*
50595059
instanceof({object}, {class})
50605060
The result is a Number, which is |TRUE| when the {object}
5061-
argument is a direct or indirect instance of a |Class|
5062-
specified by {class}.
5063-
When {class} is a |List| the function returns |TRUE| when
5061+
argument is a direct or indirect instance of a |Class|,
5062+
|Interface|, or class |:type| alias specified by {class}.
5063+
If {class} is varargs, the function returns |TRUE| when
50645064
{object} is an instance of any of the specified classes.
50655065
Example: >
5066-
instanceof(animal, [Dog, Cat])
5066+
instanceof(animal, Dog, Cat)
50675067
50685068
< Can also be used as a |method|: >
50695069
myobj->instanceof(mytype)

0 commit comments

Comments
 (0)