summaryrefslogtreecommitdiffhomepage
path: root/dart.html.markdown
diff options
context:
space:
mode:
authorBoris Verkhovskiy <boris.verk@gmail.com>2024-04-03 02:02:49 -0700
committerGitHub <noreply@github.com>2024-04-03 02:02:49 -0700
commit616e40816dfdf90c2418477327729169db0274b3 (patch)
tree0b5ae76e529c34f6648442815f535626eaeebf69 /dart.html.markdown
parent3e22775a641831a82c59a3b6197240b2fcd9a76b (diff)
parent638494ae2a0c089717f2bfff965da52e3b15a4f9 (diff)
Merge branch 'master' into elixir-casing
Diffstat (limited to 'dart.html.markdown')
-rw-r--r--dart.html.markdown5
1 files changed, 3 insertions, 2 deletions
diff --git a/dart.html.markdown b/dart.html.markdown
index 69e1623d..ab3c07d2 100644
--- a/dart.html.markdown
+++ b/dart.html.markdown
@@ -45,7 +45,7 @@ const CONSTANT_VALUE = "I CANNOT CHANGE";
CONSTANT_VALUE = "DID I?"; //Error
/// Final is another variable declaration that cannot be change once it has been instantiated. Commonly used in classes and functions
/// `final` can be declared in pascalCase.
-final finalValue = "value cannot be change once instantiated";
+final finalValue = "value cannot be changed once instantiated";
finalValue = "Seems not"; //Error
/// `var` is another variable declaration that is mutable and can change its value. Dart will infer types and will not change its data type
@@ -79,7 +79,8 @@ example1() {
/// Anonymous functions don't include a name
example2() {
- nested1(fn) {
+ //// Explicit return type.
+ nested1(void Function() fn) {
fn();
}
nested1(() => print("Example2 nested 1"));