Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Unified Diff: sdk/lib/core/string.dart

Issue 2856123003: Fix some bad documentation links. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/core/stopwatch.dart ('k') | sdk/lib/core/symbol.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/string.dart
diff --git a/sdk/lib/core/string.dart b/sdk/lib/core/string.dart
index 4e69f65a4a86d182ed34163a6a8b99e55bc733b7..18ee8c3cc44f524f3e306ed7b5e19dd81719af9b 100644
--- a/sdk/lib/core/string.dart
+++ b/sdk/lib/core/string.dart
@@ -257,7 +257,7 @@ abstract class String implements Comparable<String>, Pattern {
*
* string.indexOf(new RegExp(r'dart')); // -1
*
- * [start] must not be negative or greater than [length].
+ * [start] must be non-negative and not greater than [length].
*/
int indexOf(Pattern pattern, [int start]);
@@ -269,11 +269,11 @@ abstract class String implements Comparable<String>, Pattern {
* string.lastIndexOf('a'); // 6
* string.lastIndexOf(new RegExp(r'a(r|n)')); // 6
*
- * Returns -1 if [other] could not be found.
+ * Returns -1 if [pattern] could not be found in this string.
*
* string.lastIndexOf(new RegExp(r'DART')); // -1
*
- * [start] must not be negative or greater than [length].
+ * The [start] must be non-negative and not greater than [length].
*/
int lastIndexOf(Pattern pattern, [int start]);
@@ -431,7 +431,7 @@ abstract class String implements Comparable<String>, Pattern {
* Replace the first occurrence of [from] in this string.
*
* Returns a new string, which is this string
- * except that the first match of [pattern], starting from [startIndex],
+ * except that the first match of [from], starting from [startIndex],
* is replaced by the result of calling [replace] with the match object.
*
* The optional [startIndex] is by default set to 0. If provided, it must be
« no previous file with comments | « sdk/lib/core/stopwatch.dart ('k') | sdk/lib/core/symbol.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698