Skip to content

Commit

Permalink
Update style.md
Browse files Browse the repository at this point in the history
  • Loading branch information
windyrobin committed Feb 16, 2012
1 parent 5cd4b75 commit d2a3857
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions style.md
Expand Up @@ -222,21 +222,22 @@
, net = require('net')
, EventEmitter = require('events').EventEmitter;
```
* 注释规范,采用 [Google 的js 规范](http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml#Comments)

Right :
* 注释规范,采用 [Google 的js 规范](http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml#Comments)

```
/\*\*
\* Queries a Baz for items.
\* @param {number} groupNum Subgroup id to query.
\* @param {string|number|null} term An itemName,
\* or itemId, or null to search everything.
\*/
goog.Baz.prototype.query = function(groupNum, term) {
// ...
};
```
Right :


/**
* Queries a Baz for items.
* @param {number} groupNum Subgroup id to query.
* @param {string|number|null} term An itemName,
* or itemId, or null to search everything.
*/
goog.Baz.prototype.query = function(groupNum, term) {
// ...
};


更多案例请参看以上链接

Expand Down

0 comments on commit d2a3857

Please sign in to comment.