Merge pull request #3879 from Hiyorimi/patch-2

[dart/en-en] Updated example 9: made 'i' variable non-final
This commit is contained in:
Max Schumacher 2020-07-08 14:12:31 +02:00 committed by GitHub
commit 426c181542
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -223,7 +223,7 @@ var newExplicitLists = explicitList.toList() // Converts Iterable<E> to List<E>
/// supported features, starting with forEach,map and where.
var example9Array = const ["a", "b"];
example9() {
for (final i = 0; i < example9Array.length; i++) {
for (int i = 0; i < example9Array.length; i++) {
print("Example9 for loop '${example9Array[i]}'");
}
var i = 0;