Skip to content

Commit

Permalink
doc: Minor edits.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobie committed May 8, 2010
1 parent df67da1 commit feba59b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lang/array.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** section: Language, related to: Array
* $A(iterable) -> actualArray
* $A(iterable) -> Array
*
* Accepts an array-like collection (anything with numeric indices) and returns
* its equivalent as an actual [[Array]] object. This method is a convenience
Expand Down
6 changes: 4 additions & 2 deletions src/lang/regexp.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
* Extensions to the built-in `RegExp` object.
**/

/** alias of: RegExp#test
/**
* RegExp#match(str) -> Boolean
* - str (String): a string against witch to match the regular expression.
*
* Return true if string matches the regular expression, false otherwise.
* Alias of the native `RegExp#test` method. Returns `true`
* if `str` matches the regular expression, `false` otherwise.
**/
RegExp.prototype.match = RegExp.prototype.test;

Expand Down

0 comments on commit feba59b

Please sign in to comment.