Skip to content

Commit d2f0765

Browse files
authored
Fix warning in snippet (swiftwasm#166)
1 parent 1608094 commit d2f0765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ struct Pet: Codable {
5050
let jsPet = JSObject.global.pet
5151
let swiftPet: Pet = try JSValueDecoder().decode(from: jsPet)
5252

53-
JSObject.global.alert!("Swift is running in the browser!")
53+
_ = JSObject.global.alert!("Swift is running in the browser!")
5454
```
5555

5656
### `async`/`await`

0 commit comments

Comments
 (0)