Skip to content

Commit 10d5e85

Browse files
committed
Fixed one of Executing Arbitrary SQL examples:
- corrected method name - added : instead of =
1 parent 2100985 commit 10d5e85

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
@@ -1854,8 +1854,8 @@ using the following functions.
18541854
```swift
18551855
let stmt = try db.prepare("SELECT id, email FROM users")
18561856
for row in stmt {
1857-
for (index, name) in stmt.columnNames.enumerate() {
1858-
print ("\(name)=\(row[index]!)")
1857+
for (index, name) in stmt.columnNames.enumerated() {
1858+
print ("\(name):\(row[index]!)")
18591859
// id: Optional(1), email: Optional("[email protected]")
18601860
}
18611861
}

0 commit comments

Comments
 (0)