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

Unified Diff: lib/core/string.dart

Issue 10951004: Bug cleanup: change String.trim comment to be less ambiguous. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/string.dart
diff --git a/lib/core/string.dart b/lib/core/string.dart
index 4b852131de063d03c68682ecd9a773fbc47894bb..0d733efe3d8ade0aeb547921b89ad1419d288064 100644
--- a/lib/core/string.dart
+++ b/lib/core/string.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -78,9 +78,10 @@ interface String
String substring(int startIndex, [int endIndex]);
/**
- * Returns a new string where leading and trailing whitespaces of
- * this string have been removed, or returns this string if it does
- * not have leading and trailing whitespaces.
+ * Removes leading and trailing whitespace from a string. If the
+ * string contains leading or trailing whitespace a new string with
+ * no leading and no trailing whitespace is returned. Otherwise, the
+ * string itself is returned.
*/
String trim();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698