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

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: Forgot to save file. 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') | sdk/lib/core/string_sink.dart » ('J')
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..b27fe44206708fcecf0fb806432220fefa666d71 100644
--- a/sdk/lib/core/string_buffer.dart
+++ b/sdk/lib/core/string_buffer.dart
@@ -14,10 +14,11 @@ class StringBuffer implements StringSink {
/// 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 operation is in O(1).
Lasse Reichstein Nielsen 2013/02/20 09:32:16 It uses /** below and /// here. Please use /** for
floitsch 2013/02/21 13:49:03 Done.
external int get length;
- /// Returns whether the buffer is empty.
+ /// Returns whether the buffer is empty. This operation is in O(1).
bool get isEmpty => length == 0;
/**
« no previous file with comments | « no previous file | sdk/lib/core/string_sink.dart » ('j') | sdk/lib/core/string_sink.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698