diff --git a/Documentation/Index.md b/Documentation/Index.md index f90b5960..d6374e6e 100644 --- a/Documentation/Index.md +++ b/Documentation/Index.md @@ -308,7 +308,7 @@ into your Xcode project and added it to your application target), you can establish a _read-only_ connection to it. ```swift -let path = Bundle.main.pathForResource("db", ofType: "sqlite3")! +let path = Bundle.main.path(forResource: "db", ofType: "sqlite3")! let db = try Connection(path, readonly: true) ```