From 03ee2108eac966cc53b74f6db7c8cb34cf6e298a Mon Sep 17 00:00:00 2001 From: Mark McCulloh Date: Mon, 10 Jun 2024 00:18:16 -0400 Subject: [PATCH] chore: update set literal syntax in language spec (#6663) *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)*. --- docs/contributing/999-rfcs/2023-06-12-language-spec.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/contributing/999-rfcs/2023-06-12-language-spec.md b/docs/contributing/999-rfcs/2023-06-12-language-spec.md index 94ee6ec770f..4e36c5c59e7 100644 --- a/docs/contributing/999-rfcs/2023-06-12-language-spec.md +++ b/docs/contributing/999-rfcs/2023-06-12-language-spec.md @@ -121,8 +121,8 @@ Almost all types can be implicitly resolved by the compiler except for "any". > `Promise` is only available to JSII imported modules. > ```TS -> let z = {1, 2, 3}; // immutable set, Set is inferred -> let zm = MutSet{}; // mutable set +> let z = Set[1, 2, 3]; // immutable set +> let zm = MutSet[]; // mutable set > let y = {"a" => 1, "b" => 2}; // immutable map, Map is inferred > let ym = MutMap{}; // mutable map > let x = [1, 2, 3]; // immutable array, Array is inferred