Skip to content

Commit 2f6799a

Browse files
committed
docs: fix wrap description
1 parent 34cadbf commit 2f6799a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

catalyst/src/wrap.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
2-
* A utility method which wraps a prototype method, ensuring the given function
3-
* is also called as part of the given method name.
2+
* A utility method which wraps a method on an object. If the method doesn't
3+
* already exist on the object, it is simply assigned. If it does exist then
4+
* both the new function and the existing function will be called with the same
5+
* arguments.
46
*
57
* Used in the `controller()` decorator.
68
*/

0 commit comments

Comments
 (0)