Skip to content

Commit 7e01bf5

Browse files
authored
Fix example code in README.md
1 parent b245ad5 commit 7e01bf5

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
@@ -65,7 +65,7 @@ struct Pet: Codable {
6565
}
6666

6767
let jsPet = JSObjectRef.global.pet
68-
let swiftPet: Pet = JSValueDecoder().decode(from: jsPet)
68+
let swiftPet: Pet = try JSValueDecoder().decode(from: jsPet)
6969

7070
alert("Swift is running on browser!")
7171
```

0 commit comments

Comments
 (0)