Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 637088d

Browse files
Remove useless spaces
they have no effect on the article's appearance
1 parent 8812070 commit 637088d

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

‎1-js/03-code-quality/03-comments/article.md‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -125,25 +125,25 @@ Describe the architecture
125125
Document function parameters and usage
126126
: There's a special syntax [JSDoc](http://en.wikipedia.org/wiki/JSDoc) to document a function: usage, parameters, returned value.
127127

128-
For instance:
129-
```js
130-
/**
131-
* Returns x raised to the n-th power.
132-
*
133-
* @param {number} x The number to raise.
134-
* @param {number} n The power, must be a natural number.
135-
* @return {number} x raised to the n-th power.
136-
*/
137-
function pow(x, n) {
138-
...
139-
}
140-
```
128+
For instance:
129+
```js
130+
/**
131+
* Returns x raised to the n-th power.
132+
*
133+
* @param {number} x The number to raise.
134+
* @param {number} n The power, must be a natural number.
135+
* @return {number} x raised to the n-th power.
136+
*/
137+
function pow(x, n) {
138+
...
139+
}
140+
```
141141

142-
Such comments allow us to understand the purpose of the function and use it the right way without looking in its code.
142+
Such comments allow us to understand the purpose of the function and use it the right way without looking in its code.
143143

144-
By the way, many editors like [WebStorm](https://www.jetbrains.com/webstorm/) can understand them as well and use them to provide autocomplete and some automatic code-checking.
144+
By the way, many editors like [WebStorm](https://www.jetbrains.com/webstorm/) can understand them as well and use them to provide autocomplete and some automatic code-checking.
145145

146-
Also, there are tools like [JSDoc 3](https://github.com/jsdoc3/jsdoc) that can generate HTML-documentation from the comments. You can read more information about JSDoc at <http://usejsdoc.org/>.
146+
Also, there are tools like [JSDoc 3](https://github.com/jsdoc3/jsdoc) that can generate HTML-documentation from the comments. You can read more information about JSDoc at <http://usejsdoc.org/>.
147147

148148
Why is the task solved this way?
149149
: What's written is important. But what's *not* written may be even more important to understand what's going on. Why is the task solved exactly this way? The code gives no answer.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /