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

Unified Diff: samples/buildhook1/test.dart

Issue 11412033: Rename File.readAsText to File.readAsString. There is no Text type in Dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | « samples/buildhook1/build.dart ('k') | samples/buildhook2/bin/test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/buildhook1/test.dart
diff --git a/samples/buildhook1/test.dart b/samples/buildhook1/test.dart
index ca2f474526662efd26fd400d0f051f796c900e87..16ff820fb5c0f89bfc3f0160b944ec5b837e1f10 100644
--- a/samples/buildhook1/test.dart
+++ b/samples/buildhook1/test.dart
@@ -19,7 +19,7 @@ void printContents(String file) {
var f = new File(file);
if (f.existsSync()) {
- String contents = new File(file).readAsTextSync();
+ String contents = new File(file).readAsStringSync();
print("[${contents}]");
} else {
« no previous file with comments | « samples/buildhook1/build.dart ('k') | samples/buildhook2/bin/test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698