Skip to content

Commit a05227e

Browse files
committed
Fix lint errors
1 parent 83babd6 commit a05227e

File tree

1 file changed

+4
-2
lines changed
  • lib/node_modules/@stdlib/regexp/function-name

1 file changed

+4
-2
lines changed

lib/node_modules/@stdlib/regexp/function-name/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function beep() {
2020
return 'boop';
2121
}
2222

23-
var name = RE_FUNCTION_NAME.exec( beep.toString() )[ 1 ];
23+
var str = RE_FUNCTION_NAME.exec( beep.toString() )[ 1 ];
2424
// returns 'beep'
2525
```
2626

@@ -33,6 +33,8 @@ var name = RE_FUNCTION_NAME.exec( beep.toString() )[ 1 ];
3333

3434
## Examples
3535

36+
<!-- eslint-disable func-names, no-restricted-syntax, no-empty-function -->
37+
3638
``` javascript
3739
var RE_FUNCTION_NAME = require( '@stdlib/utils/regexp/function-name' );
3840

@@ -49,7 +51,7 @@ f = fname( Int8Array );
4951
f = fname( Object.prototype.toString );
5052
// returns 'toString'
5153

52-
f = fname( function(){} );
54+
f = fname( function () {} );
5355
// returns ''
5456
```
5557

0 commit comments

Comments
 (0)