Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c052d41

Browse files
authored
Merge pull request stephencelis#753 from vinayganesh/master
Resolved the warning that was raised because "characters" of a "String" has been deprecated.
2 parents 97ad452 + 5dceef2 commit c052d41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Sources/SQLite/Helpers.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ let SQLITE_TRANSIENT = unsafeBitCast(-1, to: sqlite3_destructor_type.self)
5656
extension String {
5757

5858
func quote(_ mark: Character = "\"") -> String {
59-
let escaped = characters.reduce("") { string, character in
59+
let escaped = reduce("") { string, character in
6060
string + (character == mark ? "\(mark)\(mark)" : "\(character)")
6161
}
6262
return "\(mark)\(escaped)\(mark)"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /