Permalink
Browse files

change # to . in --api

  • Loading branch information...
1 parent 6b5d976 commit 6a2603973087454895a898a0c88a85dba5b43ee8 @tj committed Nov 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/api.js
View
@@ -24,7 +24,7 @@ module.exports = function(comments){
code.forEach(function(block){
var code = block.replace(/^ {4}/gm, '');
- buf = buf.replace(block, '```js\n' + code.trimRight() + '\n```\n');
+ buf = buf.replace(block, '```js\n' + code.trimRight() + '\n```\n\n');
});
return toc(buf) + '\n\n' + buf;
@@ -56,7 +56,7 @@ function context(comment) {
var tags = comment.tags;
switch (ctx.type) {
case 'method':
- return (ctx.cons || ctx.receiver) + '#' + ctx.name + '(' + params(tags) + ')';
+ return (ctx.cons || ctx.receiver) + '.' + ctx.name + '(' + params(tags) + ')';
default:
return ctx.string;
}

0 comments on commit 6a26039

Please sign in to comment.