Skip to content

Commit

Permalink
Fixing some typos in the shims.
Browse files Browse the repository at this point in the history
  • Loading branch information
benvanik committed May 6, 2013
1 parent 4ad4ded commit 237fe91
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions third_party/wtf-trace-closure.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ WTF.trace.popZone = WTF.PRESENT ?
* It is strongly recommended that a custom enter scope event should be used * 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 * 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 * 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: * Example:
* <code> * <code>
Expand Down Expand Up @@ -396,7 +396,7 @@ WTF.trace.enterTracingScope = WTF.PRESENT ?


/** /**
* Leaves a scope. * 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. * previous call to {@see #enterScope} or a custom enter scope function.
* @param {T=} opt_result Optional result to chain. * @param {T=} opt_result Optional result to chain.
* @param {number=} opt_time Time for the leave; omit to use the current time. * @param {number=} opt_time Time for the leave; omit to use the current time.
Expand Down Expand Up @@ -694,7 +694,7 @@ WTF.trace.events.createInstance = WTF.PRESENT ?
* // Enter and leave each function call with custom args. * // Enter and leave each function call with custom args.
* var scope = my.Type.someMethodEvent_(123, 'hello'); * var scope = my.Type.someMethodEvent_(123, 'hello');
* var result = 5; // ... * var result = 5; // ...
* return wtf.trace.leaveScope(scope, result); * return WTF.trace.leaveScope(scope, result);
* }; * };
* </code> * </code>
* *
Expand All @@ -720,7 +720,7 @@ WTF.trace.events.createScope = WTF.PRESENT ?
* }, 'my.Type.foo(uint8 b@1)'); * }, 'my.Type.foo(uint8 b@1)');
* </code> * </code>
* *
* @param {Function} value Target function. * @param {T} value Target function.
* @param {string} signature Method signature. * @param {string} signature Method signature.
* @param {string=} opt_namePrefix String to prepend to the name. * @param {string=} opt_namePrefix String to prepend to the name.
* @param {(function(Function, Function):Function)=} opt_generator * @param {(function(Function, Function):Function)=} opt_generator
Expand All @@ -729,7 +729,8 @@ WTF.trace.events.createScope = WTF.PRESENT ?
* event type. * event type.
* @param {(function())=} opt_pre Code to execute before the scope is entered. * @param {(function())=} opt_pre Code to execute before the scope is entered.
* This is only called if {@code opt_generator} is not provided. * 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 ? WTF.trace.instrument = WTF.PRESENT ?
goog.global['wtf']['trace']['instrument'] : goog.identityFunction; goog.global['wtf']['trace']['instrument'] : goog.identityFunction;
Expand Down

0 comments on commit 237fe91

Please sign in to comment.