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

Unified Diff: sdk/lib/io/http_impl.dart

Issue 12870003: Make argument to StringSink.writeln optional. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minor fix. Created 7 years, 9 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/string_sink.dart ('k') | sdk/lib/io/io_sink.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http_impl.dart
diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart
index 337c02fcd57e7d2ebe43345b19952d5d104ce987..1f794570966bd9fc7259047a629568abcc8b79e3 100644
--- a/sdk/lib/io/http_impl.dart
+++ b/sdk/lib/io/http_impl.dart
@@ -379,7 +379,7 @@ abstract class _HttpOutboundMessage<T> implements IOSink {
for (Object obj in objects) write(obj);
}
- void writeln(Object obj) {
+ void writeln([Object obj = ""]) {
write(obj);
write("\n");
}
@@ -1581,7 +1581,7 @@ class _DetachedSocket extends Stream<List<int>> implements Socket {
void write(Object obj) => _socket.write(obj);
- void writeln(Object obj) => _socket.writeln(obj);
+ void writeln([Object obj = ""]) => _socket.writeln(obj);
void writeCharCode(int charCode) => _socket.writeCharCode(charCode);
« no previous file with comments | « sdk/lib/core/string_sink.dart ('k') | sdk/lib/io/io_sink.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698