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

Unified Diff: lib/scalarlist/byte_arrays.dart

Issue 11366034: Byte array documentation fix (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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/scalarlist/byte_arrays.dart
diff --git a/lib/scalarlist/byte_arrays.dart b/lib/scalarlist/byte_arrays.dart
index 8789ec462264de5d7db6d24f37979b8b2cba421c..a4d5515a187bac1bda2a2b0d5df2bf3945eb5eb1 100644
--- a/lib/scalarlist/byte_arrays.dart
+++ b/lib/scalarlist/byte_arrays.dart
@@ -15,9 +15,9 @@
* For example this code fragment determine what 64-bit signed integer
* is represented by the bytes of a 64-bit floating point number:
*
- * var ba = new ByteArray(8);
- * ba.setFloat64(0, 3.14159265358979323846);
- * int huh = ba.getInt64(0);
+ * var ba = new Uint8List(8).asByteArray();
+ * ba.setFloat64(0, 3.14159265358979323846);
+ * int huh = ba.getInt64(0);
*/
abstract class ByteArray {
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698