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

Unified Diff: sdk/lib/convert/utf.dart

Issue 2707893002: Improve documentation for utf8 decoder (and BOMs). (Closed)
Patch Set: Created 3 years, 10 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/convert/utf.dart
diff --git a/sdk/lib/convert/utf.dart b/sdk/lib/convert/utf.dart
index 6b9feceaa7b9e703ca77fc6cf3cee6a967597ee1..86a34af5abca855774594bf87a4fb577146cd795 100644
--- a/sdk/lib/convert/utf.dart
+++ b/sdk/lib/convert/utf.dart
@@ -330,8 +330,8 @@ class Utf8Decoder extends Converter<List<int>, String>
* Uses the code units from [start] to, but no including, [end].
* If [end] is omitted, it defaults to `codeUnits.length`.
*
- * If the [codeUnits] start with a leading [UNICODE_BOM_CHARACTER_RUNE] this
- * character is discarded.
+ * If the [codeUnits] start with the encoding of a
+ * [UNICODE_BOM_CHARACTER_RUNE], that character is discarded.
*/
String convert(List<int> codeUnits, [int start = 0, int end]) {
// Allow the implementation to intercept and specialize based on the type
« 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