Skip to content

Commit b1b27d5

Browse files
ssherarstephencelis
authored andcommitted
Updating documentation for forced downcast
1 parent 440579e commit b1b27d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/Index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ On iOS, you can create a writable database in your app’s **Documents** directo
136136
``` swift
137137
let path = NSSearchPathForDirectoriesInDomains(
138138
.DocumentDirectory, .UserDomainMask, true
139-
).first as String
139+
).first as! String
140140

141141
let db = Database("\(path)/db.sqlite3")
142142
```
@@ -146,7 +146,7 @@ On OS X, you can use your app’s **Application Support** directory:
146146
``` swift
147147
var path = NSSearchPathForDirectoriesInDomains(
148148
.ApplicationSupportDirectory, .UserDomainMask, true
149-
).first as String + NSBundle.mainBundle().bundleIdentifier!
149+
).first as! String + NSBundle.mainBundle().bundleIdentifier!
150150

151151
// create parent directory iff it doesn’t exist
152152
NSFileManager.defaultManager().createDirectoryAtPath(

0 commit comments

Comments
 (0)