Skip to content

Commit 4070bef

Browse files
authored
Update README.md (#2)
1 parent dedc832 commit 4070bef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ enum DeepLink {
7575
// ✅ Valid URLs
7676
DeepLink(url: URL(string: "/posts/1")!) == .post(postId: "1")
7777
DeepLink(url: URL(string: "/posts/1/comments/2")!) == .postComment(postId: "1", commentId: "2")
78-
DeepLink(url: URL(string: "/f/1/s/2")!) == .postComment(second: 2, first: 1)
78+
DeepLink(url: URL(string: "/f/1/s/2")!) == .reverse(second: 2, first: 1)
7979

8080
// ❌ Invalid URLs
8181
DeepLink(url: URL(string: "/post/1")!) == nil
8282
DeepLink(url: URL(string: "/posts/1/comments")!) == nil
8383
DeepLink(url: URL(string: "/f/string/s/string")!) == nil
8484
```
8585
4. Use the `Enum.init(url: URL)` generated initializer.
86-
```
86+
```swift
8787
if let deepLink = DeepLink(url: incomingURL) {
8888
switch deepLink {
8989
case .post(let postId):

0 commit comments

Comments
 (0)