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

Unified Diff: pkg/intl/tool/generate_locale_data_files.dart

Issue 11273041: Make first and last getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 years, 2 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 | « pkg/intl/lib/src/date_format_field.dart ('k') | pkg/unittest/mock.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/tool/generate_locale_data_files.dart
diff --git a/pkg/intl/tool/generate_locale_data_files.dart b/pkg/intl/tool/generate_locale_data_files.dart
index 12d3f6c1a2bbdf6121e724de20e16eefa0286d35..6cec6aca0cc32c3154642c10106446c151bf7bd6 100644
--- a/pkg/intl/tool/generate_locale_data_files.dart
+++ b/pkg/intl/tool/generate_locale_data_files.dart
@@ -40,7 +40,7 @@ void writeLocaleList() {
List<String> allLocales = DateFormat.allLocalesWithSymbols();
allLocales.forEach((locale) {
outputStream.writeString('"$locale"');
- if (locale == allLocales.last()) {
+ if (locale == allLocales.last) {
outputStream.writeString('];');
} else {
outputStream.writeString(',\n ');
« no previous file with comments | « pkg/intl/lib/src/date_format_field.dart ('k') | pkg/unittest/mock.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698