Skip to content

Commit

Permalink
docs.md: Ditch var keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
simnalamburt committed Feb 5, 2025
1 parent 5688d78 commit a74c454
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Documentation
### Client
Given a stream from `net` or `tls` or another network source, construct an IRC client.
```js
var client = irc(stream);
const client = irc(stream);
```

#### .pass(pass)
Expand Down Expand Up @@ -115,7 +115,7 @@ function logger() {
```
Then `.use()` it like so:
```js
var client = irc(stream);
const client = irc(stream);
client.use(logger());
```
Returning a function like `logger()` instead of `logger` is optional,
Expand Down

0 comments on commit a74c454

Please sign in to comment.