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

Unified Diff: samples/markdown/markdown.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « samples/markdown/block_parser.dart ('k') | samples/newissues/newissues.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/markdown/markdown.dart
diff --git a/samples/markdown/markdown.dart b/samples/markdown/markdown.dart
index e7d502730d0c68e76228cead2231c7f91ee37bb8..6eff567681e4fce58d0682bb40f470596588e57c 100644
--- a/samples/markdown/markdown.dart
+++ b/samples/markdown/markdown.dart
@@ -33,7 +33,7 @@ main() {
String readFile(String path) {
final file = (new File(path)).openSync();
final length = file.lengthSync();
- final buffer = new List<int>(length);
+ final buffer = new List<int>.fixedLength(length);
final bytes = file.readListSync(buffer, 0, length);
file.closeSync();
return new String.fromCharCodes(buffer);
« no previous file with comments | « samples/markdown/block_parser.dart ('k') | samples/newissues/newissues.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698