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

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

Issue 1377843003: Fix typos in base64.dart (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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/base64.dart
diff --git a/sdk/lib/convert/base64.dart b/sdk/lib/convert/base64.dart
index 9ab025bd0733bc574a94915e47bc864f41f1c37d..64a63e663349b37102ac0a0e61fdc243ed978d52 100644
--- a/sdk/lib/convert/base64.dart
+++ b/sdk/lib/convert/base64.dart
@@ -65,7 +65,7 @@ class Base64Encoder extends Converter<List<int>, String> {
ByteConversionSink startChunkedConversion(Sink<String> sink) {
if (sink is StringConversionSink) {
- return new _Utf8Base64EncoderSink(sink.asUtf8Sink());
+ return new _Utf8Base64EncoderSink(sink.asUtf8Sink(false));
}
return new _AsciiBase64EncoderSink(sink);
}
@@ -575,7 +575,7 @@ class _Base64Decoder {
if (expectedPadding > 0) {
int firstChar = input.codeUnitAt(start);
if (firstChar != _paddingChar) {
- throw new FormatException("Missing padding character", string, start);
+ throw new FormatException("Missing padding character", input, start);
}
state = _encodePaddingState(0);
start++;
« 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