Skip to content

Commit a7d7169

Browse files
committed
[docs] document nqp::create, correct nqp::can docs
1 parent a6a00f1 commit a7d7169

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/ops.markdown

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,14 +1176,18 @@ where the attribute was declared in type `$typeobj`. The notes in the
11761176
## can
11771177
* `can(Any $obj, str $method)`
11781178

1179-
If the object has a method of the given name, return it. Otherwise,
1180-
throw an exception.
1179+
If the object has a method of the given name, return 1. Otherwise, return 0.
11811180

11821181
## clone
11831182
* `clone(Any $obj)`
11841183

11851184
Return a clone of the passed in object.
11861185

1186+
## create
1187+
* `create(Mu $typeobj)`
1188+
1189+
Returns a newly allocated instance of type `$typeobj`.
1190+
11871191
## eqaddr
11881192
* `eqaddr(Any $l, Any $r)`
11891193

0 commit comments

Comments
 (0)