Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
benchmark: Fix doc parse bug with Benchmark.Suite.options. [jddalton]
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Mar 25, 2011
1 parent f8d06f9 commit b4c19ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/benchmark.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<!-- div -->
## `Benchmark.Suite`
* [`Benchmark.Suite`](#Benchmark.Suite)
* [`Benchmark.Suite.Suite.options`](#Benchmark.Suite.Suite.options)
* [`Benchmark.Suite.options`](#Benchmark.Suite.options)
<!-- /div -->
<!-- div -->
## `Benchmark.Suite.prototype`
Expand Down Expand Up @@ -843,7 +843,7 @@ Suite constructor.
<!-- /div -->

<!-- div -->
### <a id="Benchmark.Suite.Suite.options" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L2068" title="View in source">`Benchmark.Suite.Suite.options`</a>
### <a id="Benchmark.Suite.options" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L2068" title="View in source">`Benchmark.Suite.options`</a>
*(Object)*: The default options object copied by instances.
[&#9650;][1]
<!-- /div -->
Expand Down
2 changes: 1 addition & 1 deletion docs/parse.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function parse($filepath) {
// parse #{call}
preg_match("@\*/\s*(?:function ([^(]*)|(?:". $member ."\.)?([^:=,]*))@", $entry, $call);
if ($call = array_pop($call)) {
$call = trim(trim($call), "'");
$call = trim(trim(array_pop(explode(".", $call))), "'");
}
// parse #{name}
Expand Down

0 comments on commit b4c19ab

Please sign in to comment.