Skip to content

Commit 01719e4

Browse files
committed
Make function example not return value so as to not confuse with return example
1 parent 3e81ed1 commit 01719e4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/core/reference.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,11 @@
9999
* @example
100100
* <div class='norender'>
101101
* <code>
102-
* function calculateRectArea(width, height) {
103-
* return width * height;
102+
* let myName = 'Hridi';
103+
* function sayHello(name) {
104+
* console.log('Hello ' + name + '!');
104105
* }
105-
* calculateRectArea(4, 5); // calling the function
106+
* sayHello(myName); // calling the function, prints "Hello Hridi!" to console.
106107
* </code>
107108
* </div>
108109
*/

0 commit comments

Comments
 (0)