Skip to content

Commit 490776d

Browse files
committed
Change commeting style
1 parent 42a4c79 commit 490776d

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

JavaScript/c-comments.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
const fs = require('fs');
44

5-
const printLine = (
6-
// Print specified line from a file
7-
fileName, // file to parse
8-
lineNumber // number, line starting from 1
9-
// Returns: boolean, success status
10-
) => {
5+
// Print specified line from a file
6+
// fileName - string, file to parse
7+
// lineNumber - number, line starting from 1
8+
// Returns: boolean, success status
9+
const printLine = (fileName, lineNumber) => {
1110
const content = fs.readFileSync(fileName).toString();
1211
const lines = content.split('\n');
1312
const line = lines[lineNumber - 1];

0 commit comments

Comments
 (0)