Skip to content

Commit b55ef26

Browse files
authored
Update README.md
1 parent d4967b1 commit b55ef26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
## How to use
22
it's Simple:
3-
```
3+
```javascript
44
import createMethod from "create-custom-method"
55
createMethod(source, "print", () => {
66
console.log("source: " + source)
77
})
88
```
9-
`source` is the variable that you want to add your method to. The second argument is what is the name of your method will be and the last argument is your method function. It can be either a callback function or not!
9+
`source` is the variable that you want to add your method to. The second argument is what is the name of your method will be and the last argument is your method function. It can be either a callback function or not!

0 commit comments

Comments
 (0)