summaryrefslogtreecommitdiffhomepage
path: root/dart.html.markdown
diff options
context:
space:
mode:
authorMax Schumacher <maximilianbschumacher@gmail.com>2020-07-07 15:34:25 +0200
committerGitHub <noreply@github.com>2020-07-07 15:34:25 +0200
commit9f622b2479dbf9df7999c275b5634997e848fb20 (patch)
tree51646ece4b154c18c897197ff88519b8fac5cf6f /dart.html.markdown
parent02742a59343ffe9446259f5f4d84ae612fccd8dc (diff)
parentcfb34733963ed78cb134b9caff9bb0b0ba25aa34 (diff)
Merge pull request #3878 from Hiyorimi/patch-1
[dart/en-en] Updated example 8
Diffstat (limited to 'dart.html.markdown')
-rw-r--r--dart.html.markdown3
1 files changed, 1 insertions, 2 deletions
diff --git a/dart.html.markdown b/dart.html.markdown
index ee695d33..e94f1203 100644
--- a/dart.html.markdown
+++ b/dart.html.markdown
@@ -198,7 +198,7 @@ class GenericExample<T>{
/// or outside of class have to be constant. Strings and numbers are constant
/// by default. But arrays and maps are not. They can be made constant by
/// declaring them "const". Kind of similar to Javascript's Object.freeze()
-const example8List = ["Example8 const array"],
+const example8List = ["Example8 const array"];
const example8Map = {"someKey": "Example8 const map"};
/// Declare List or Maps as Objects.
List<String> explicitList = new List<String>();
@@ -206,7 +206,6 @@ const example8Map = {"someKey": "Example8 const map"};
explicitList.add("SomeArray");
example8() {
- print(example8Array[0]);
print(example8Map["someKey"]);
print(explicitList[0]);
}