Permalink
Browse files

Fixing some typos in the shims.

  • Loading branch information...
1 parent 4ad4ded commit 237fe91ca5f9bb41c9626ac280a3c33f4b0f3991 @benvanik committed May 6, 2013
Showing with 6 additions and 5 deletions.
  1. +6 −5 third_party/wtf-trace-closure.js
@@ -364,7 +364,7 @@ WTF.trace.popZone = WTF.PRESENT ?
* It is strongly recommended that a custom enter scope event should be used
* instead of this, as the overhead required to write the scope name is
* non-trivial. Only use this when the name changes many times at runtime or
- * you're hacking something together. See {@see wtf.trace.events.createScope}.
+ * you're hacking something together. See {@see WTF.trace.events.createScope}.
*
* Example:
* <code>
@@ -396,7 +396,7 @@ WTF.trace.enterTracingScope = WTF.PRESENT ?
/**
* Leaves a scope.
- * @param {wtf.trace.Scope} scope Scope to leave. This is the result of a
+ * @param {WTF.trace.Scope} scope Scope to leave. This is the result of a
* previous call to {@see #enterScope} or a custom enter scope function.
* @param {T=} opt_result Optional result to chain.
* @param {number=} opt_time Time for the leave; omit to use the current time.
@@ -694,7 +694,7 @@ WTF.trace.events.createInstance = WTF.PRESENT ?
* // Enter and leave each function call with custom args.
* var scope = my.Type.someMethodEvent_(123, 'hello');
* var result = 5; // ...
- * return wtf.trace.leaveScope(scope, result);
+ * return WTF.trace.leaveScope(scope, result);
* };
* </code>
*
@@ -720,7 +720,7 @@ WTF.trace.events.createScope = WTF.PRESENT ?
* }, 'my.Type.foo(uint8 b@1)');
* </code>
*
- * @param {Function} value Target function.
+ * @param {T} value Target function.
* @param {string} signature Method signature.
* @param {string=} opt_namePrefix String to prepend to the name.
* @param {(function(Function, Function):Function)=} opt_generator
@@ -729,7 +729,8 @@ WTF.trace.events.createScope = WTF.PRESENT ?
* event type.
* @param {(function())=} opt_pre Code to execute before the scope is entered.
* This is only called if {@code opt_generator} is not provided.
- * @return {Function} The instrumented input value.
+ * @return {T} The instrumented input value.
+ * @template T
*/
WTF.trace.instrument = WTF.PRESENT ?
goog.global['wtf']['trace']['instrument'] : goog.identityFunction;

0 comments on commit 237fe91

Please sign in to comment.