Skip to content
This repository was archived by the owner on May 20, 2021. It is now read-only.

Commit e1e8036

Browse files
committed
README: NSURL -> URL
1 parent fffed7a commit e1e8036

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct SpaceShip {
4848
let weight: Double
4949
let engine: Engine
5050
let passengers: [Astronaut]
51-
let launchLiveStreamURL: NSURL?
51+
let launchLiveStreamURL: URL?
5252
let lastPilot: Astronaut?
5353
}
5454

@@ -81,7 +81,7 @@ let ship = SpaceShip(
8181
Astronaut(name: "Mike"),
8282
Astronaut(name: "Amanda")
8383
],
84-
launchLiveStreamURL: NSURL(string: "http://livestream.com"),
84+
launchLiveStreamURL: URL(string: "http://livestream.com"),
8585
lastPilot: nil
8686
)
8787
```
@@ -110,7 +110,7 @@ Which will produce the following dictionary:
110110
}
111111
```
112112

113-
As you can see, Wrap automatically encoded the `NSURL` property to its `absoluteString`, and ignored any properties that were `nil` (reducing the size of the produced JSON).
113+
As you can see, Wrap automatically encoded the `URL` property to its `absoluteString`, and ignored any properties that were `nil` (reducing the size of the produced JSON).
114114

115115
### Customization
116116

0 commit comments

Comments
 (0)