Skip to content

Commit 9481e00

Browse files
author
Isaac Ramirez
committed
- update test.client sample
1 parent 6225526 commit 9481e00

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/samples/test.client.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ const { StdOut } = require('../../src/libs')
1111
class TestClient {
1212
/**
1313
* Main static function
14-
* @param {[number, number]} args - [n, m]
14+
* @param {Array<string>} args - Syntax: `[n, m]`
15+
* * The first number `n`
16+
* * The second number `m`
1517
* @returns {number} `n` * `m`
1618
* @example <caption>testing the client</caption>
17-
* ```sh
19+
* {@lang bash}
1820
* $ ./client TestClient 10 50
1921
* 500
20-
* ```
2122
*/
2223
static main (args) {
2324
const n = parseInt(args[0])
@@ -27,4 +28,6 @@ class TestClient {
2728
}
2829
}
2930

31+
TestClient.main()
32+
3033
module.exports = { TestClient }

0 commit comments

Comments
 (0)