Skip to content

Commit

Permalink
chore: update set literal syntax in language spec (#6663)
Browse files Browse the repository at this point in the history
*By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
  • Loading branch information
MarkMcCulloh committed Jun 10, 2024
1 parent 41d8839 commit 03ee210
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/contributing/999-rfcs/2023-06-12-language-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ Almost all types can be implicitly resolved by the compiler except for "any".
> `Promise<T>` is only available to JSII imported modules.
> ```TS
> let z = {1, 2, 3}; // immutable set, Set<Num> is inferred
> let zm = MutSet<num>{}; // mutable set
> let z = Set<num>[1, 2, 3]; // immutable set
> let zm = MutSet<num>[]; // mutable set
> let y = {"a" => 1, "b" => 2}; // immutable map, Map<num> is inferred
> let ym = MutMap<num>{}; // mutable map
> let x = [1, 2, 3]; // immutable array, Array<num> is inferred
Expand Down

0 comments on commit 03ee210

Please sign in to comment.