File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ On iOS, you can create a writable database in your app’s **Documents** directo
136136``` swift
137137let path = NSSearchPathForDirectoriesInDomains (
138138 .DocumentDirectory , .UserDomainMask , true
139- ).first as String
139+ ).first as! String
140140
141141let db = Database (" \( path ) /db.sqlite3" )
142142```
@@ -146,7 +146,7 @@ On OS X, you can use your app’s **Application Support** directory:
146146``` swift
147147var 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
152152NSFileManager.defaultManager ().createDirectoryAtPath (
You can’t perform that action at this time.
0 commit comments