diff --git a/working/3616 - enum value shorthand/proposal-simple-lrhn.md b/working/3616 - enum value shorthand/proposal-simple-lrhn.md index c2243cb12..d1b112b6e 100644 --- a/working/3616 - enum value shorthand/proposal-simple-lrhn.md +++ b/working/3616 - enum value shorthand/proposal-simple-lrhn.md @@ -73,7 +73,7 @@ Future> futures = .wait([.value(1), .value(2)]); Future futures = .wait([.value(1), .value(2)]); // -> Future>.wait([lazyString(), lazyString()]).then((list) => list.join()) -Future = .wait([lazyString(), lazyString()]).then((list) => list.join()); +Future futures = .wait([lazyString(), lazyString()]).then((list) => list.join()); ``` This is a simple grammatical change. It allows new constructs in any place where @@ -216,7 +216,7 @@ denotes an allowed type declaration: int v1 = .parse("42") + 1; // Context `_`. int v2 = (.parse("42")).abs(); // Context `_`. dynamic v3 = .parse("42"); // Context `_`. -FutureOr = .parse("42"); // Context `FutureOr` is structural type. +FutureOr v4 = .parse("42"); // Context `FutureOr` is structural type. ``` #### Special case for `==`