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

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

Issue 12303026: More comments to StringBuffers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 10 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 | sdk/lib/core/string_sink.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/string_buffer.dart
diff --git a/sdk/lib/core/string_buffer.dart b/sdk/lib/core/string_buffer.dart
index cbfcd6eee2959466b2931248935a9180ea5cc2d5..07d3277066e8832c6077c805a8ed37aee8ebe77d 100644
--- a/sdk/lib/core/string_buffer.dart
+++ b/sdk/lib/core/string_buffer.dart
@@ -11,13 +11,16 @@ part of dart.core;
*/
class StringBuffer implements StringSink {
- /// Creates the string buffer with an initial content.
+ /** Creates the string buffer with an initial content. */
external StringBuffer([Object content = ""]);
- /// Returns the length of the buffer.
+ /**
+ * Returns the length of the content that has been accumulated so far.
+ * This is a constant-time operation.
+ */
external int get length;
- /// Returns whether the buffer is empty.
+ /** Returns whether the buffer is empty. This is a constant-time operation. */
bool get isEmpty => length == 0;
/**
« no previous file with comments | « no previous file | sdk/lib/core/string_sink.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698