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

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

Issue 16285004: Better documentation on Sets and Maps, and more. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: A few more documentation tweaks Created 7 years, 6 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
« sdk/lib/core/num.dart ('K') | « sdk/lib/core/set.dart ('k') | no next file » | 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 3f0ad31f4bf8fba78a2e8b13feeaa6dfcaec502f..0b4fbd4b6ac5817e15b2d47e12c8cb26b25eb3db 100644
--- a/sdk/lib/core/string.dart
+++ b/sdk/lib/core/string.dart
@@ -179,10 +179,14 @@ abstract class String implements Comparable<String>, Pattern {
String trim();
/**
- * Returns whether this string contains [other] starting
- * at [startIndex] (inclusive).
+ * Returns whether this string contains a match of [other].
+ *
+ * If [startIndex] is provided, only matches at or after that index
+ * are considered.
+ *
+ * It is an error if [startIndex] is negative or greater than [length].
*/
- bool contains(Pattern other, [int startIndex]);
+ bool contains(Pattern other, [int startIndex = 0]);
/**
* Returns a new string where the first occurence of [from] in this string
« sdk/lib/core/num.dart ('K') | « sdk/lib/core/set.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698