Skip to content

Commit 52ff0f1

Browse files
authored
docs: use const instead of var (#154)
block scoping is less surprising
1 parent cfb27ae commit 52ff0f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Below is a list of rules that valid `npm` package name should conform to.
4242
### Valid Names
4343

4444
```js
45-
var validate = require("validate-npm-package-name")
45+
const validate = require("validate-npm-package-name")
4646

4747
validate("some-package")
4848
validate("example.com")

0 commit comments

Comments
 (0)