Skip to content

Commit 19ef86c

Browse files
chore(docs): update language ref with if let var (#3896)
Following #3840 - updated the language reference with `if let var`. ## Checklist - [ ] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted) - [ ] Description explains motivation and solution - [ ] Tests added (always) - [ ] Docs updated (only required for features) - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing *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)*.
1 parent 977fa9e commit 19ef86c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/03-language-reference.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -874,8 +874,8 @@ if myPerson.address == nil {
874874
875875
#### 1.6.3 Unwrapping using `if let`
876876
877-
The `if let` statement can be used to test if an optional is defined and *unwrap* it into a
878-
non-optional variable defined inside the block:
877+
The `if let` statement (or `if let var` for a reassignable variable) can be used to test if an
878+
optional is defined and *unwrap* it into a non-optional variable defined inside the block:
879879
880880
```TS
881881
if let address = myPerson.address {

0 commit comments

Comments
 (0)