Skip to content

Commit 29c4368

Browse files
Merge pull request #43 from victor-homyakov/patch-5
Fix PDoc.
2 parents 7b09d80 + 308917b commit 29c4368

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/prototype/lang/string.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Object.extend(String.prototype, (function() {
177177
* ##### Examples
178178
*
179179
* 'apple, pear & orange'.scan(/\w+/, alert);
180-
* // -> 'apple pear orange' (and displays 'apple', 'pear' and 'orange' in three successive alert dialogs)
180+
* // -> 'apple pear & orange' (and displays 'apple', 'pear' and 'orange' in three successive alert dialogs)
181181
*
182182
* Can be used to populate an array:
183183
*
@@ -382,11 +382,9 @@ Object.extend(String.prototype, (function() {
382382
* }
383383
*
384384
* (You can leave off the `window.` part of that, but it's bad form.)
385-
* Evaluates the content of any `script` block present in the string. Returns
386-
* an array containing the value returned by each script.
387385
**/
388386
function evalScripts() {
389-
return this.extractScripts().map(function(script) { return eval(script) });
387+
return this.extractScripts().map(function(script) { return eval(script); });
390388
}
391389

392390
/** related to: String#unescapeHTML
@@ -451,7 +449,7 @@ Object.extend(String.prototype, (function() {
451449
* 'section=blog&id=45'.toQueryParams();
452450
* // -> {section: 'blog', id: '45'}
453451
*
454-
* 'section=blog;id=45'.toQueryParams();
452+
* 'section=blog;id=45'.toQueryParams(';');
455453
* // -> {section: 'blog', id: '45'}
456454
*
457455
* 'http://www.example.com?section=blog&id=45#comments'.toQueryParams();

0 commit comments

Comments
 (0)