doc: console.trace takes a message format
authorSam Roberts <sam@strongloop.com>
Sat, 19 Jul 2014 21:34:41 +0000 (14:34 -0700)
committerFedor Indutny <fedor@indutny.com>
Wed, 23 Jul 2014 19:09:41 +0000 (23:09 +0400)
Documentation claimed it accepted a single label argument, as time and
timeEnd do, which was incorrect.

Signed-off-by: Fedor Indutny <fedor@indutny.com>
doc/api/console.markdown

index e7807fe..76860e5 100644 (file)
@@ -62,9 +62,10 @@ Finish timer, record output. Example:
     }
     console.timeEnd('100-elements');
 
-## console.trace(label)
+## console.trace(message, [...])
 
-Print a stack trace to stderr of the current position.
+Print to stderr `'Trace :'`, followed by the formatted message and stack trace
+to the current position.
 
 ## console.assert(value, [message], [...])