Skip to content

Commit 607a37a

Browse files
authored
Update Index.md
'pathForResource(_:ofType:)' has been renamed to 'path(forResource:ofType:)'
1 parent 7e525c2 commit 607a37a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/Index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ into your Xcode project and added it to your application target), you can
308308
establish a _read-only_ connection to it.
309309

310310
```swift
311-
let path = Bundle.main.pathForResource("db", ofType: "sqlite3")!
311+
let path = Bundle.main.path(forResource: "db", ofType: "sqlite3")!
312312
313313
let db = try Connection(path, readonly: true)
314314
```

0 commit comments

Comments
 (0)