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

Unified Diff: sdk/lib/typed_data/typed_data.dart

Issue 2823363002: Correct range in docs for signed accessors of ByteData. (Closed)
Patch Set: Created 3 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/typed_data/typed_data.dart
diff --git a/sdk/lib/typed_data/typed_data.dart b/sdk/lib/typed_data/typed_data.dart
index e332944c5f5bccbc41089651e85a0651a1ed35ef..7de074b02cef7d6b53d5c2d12b4124afc0781b24 100644
--- a/sdk/lib/typed_data/typed_data.dart
+++ b/sdk/lib/typed_data/typed_data.dart
@@ -501,7 +501,7 @@ abstract class ByteData implements TypedData {
* the specified [byteOffset] in this object, in two's complement binary
* form.
*
- * The return value will be between 2<sup>15</sup> and 2<sup>15</sup> - 1,
+ * The return value will be between -2<sup>15</sup> and 2<sup>15</sup> - 1,
* inclusive.
*
* Throws [RangeError] if [byteOffset] is negative, or
@@ -515,7 +515,7 @@ abstract class ByteData implements TypedData {
* [value], which must fit in two bytes.
*
* In other words, [value] must lie
- * between 2<sup>15</sup> and 2<sup>15</sup> - 1, inclusive.
+ * between -2<sup>15</sup> and 2<sup>15</sup> - 1, inclusive.
*
* Throws [RangeError] if [byteOffset] is negative, or
* `byteOffset + 2` is greater than the length of this object.
@@ -554,7 +554,7 @@ abstract class ByteData implements TypedData {
* the specified [byteOffset] in this object, in two's complement binary
* form.
*
- * The return value will be between 2<sup>31</sup> and 2<sup>31</sup> - 1,
+ * The return value will be between -2<sup>31</sup> and 2<sup>31</sup> - 1,
* inclusive.
*
* Throws [RangeError] if [byteOffset] is negative, or
@@ -568,7 +568,7 @@ abstract class ByteData implements TypedData {
* [value], which must fit in four bytes.
*
* In other words, [value] must lie
- * between 2<sup>31</sup> and 2<sup>31</sup> - 1, inclusive.
+ * between -2<sup>31</sup> and 2<sup>31</sup> - 1, inclusive.
*
* Throws [RangeError] if [byteOffset] is negative, or
* `byteOffset + 4` is greater than the length of this object.
@@ -607,7 +607,7 @@ abstract class ByteData implements TypedData {
* the specified [byteOffset] in this object, in two's complement binary
* form.
*
- * The return value will be between 2<sup>63</sup> and 2<sup>63</sup> - 1,
+ * The return value will be between -2<sup>63</sup> and 2<sup>63</sup> - 1,
* inclusive.
*
* Throws [RangeError] if [byteOffset] is negative, or
@@ -621,7 +621,7 @@ abstract class ByteData implements TypedData {
* [value], which must fit in eight bytes.
*
* In other words, [value] must lie
- * between 2<sup>63</sup> and 2<sup>63</sup> - 1, inclusive.
+ * between -2<sup>63</sup> and 2<sup>63</sup> - 1, inclusive.
*
* Throws [RangeError] if [byteOffset] is negative, or
* `byteOffset + 8` is greater than the length of this object.
« 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