Skip to content

Commit 018eee7

Browse files
yulerntwcklng
authored andcommitted
Rename function firstBig => capitalize (#140)
1 parent 4bc4b53 commit 018eee7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/help.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module.exports = function() {
44
const name = this.config.name || this.binary.replace('-', ' ')
5-
const firstBig = word => word.charAt(0).toUpperCase() + word.substr(1)
5+
const capitalize = word => word.charAt(0).toUpperCase() + word.substr(1)
66

77
const parts = []
88

@@ -37,7 +37,7 @@ module.exports = function() {
3737
continue
3838
}
3939

40-
parts.push(['', firstBig(group) + ':', ''])
40+
parts.push(['', capitalize(group) + ':', ''])
4141

4242
if (group === 'examples') {
4343
parts.push(this.generateExamples())

0 commit comments

Comments
 (0)