فهرست منبع

Update README

Replace `println` with `print`
Robert M. Ryan 10 سال پیش
والد
کامیت
33ed2c0068
1فایلهای تغییر یافته به همراه6 افزوده شده و 6 حذف شده
  1. 6 6
      README.markdown

+ 6 - 6
README.markdown

@@ -289,20 +289,20 @@ let fileURL = documents.URLByAppendingPathComponent("test.sqlite")
 let database = FMDatabase(path: fileURL.path)
 
 if !database.open() {
-    println("Unable to open database")
+    print("Unable to open database")
     return
 }
 
 if !database.executeUpdate("create table test(x text, y text, z text)", withArgumentsInArray: nil) {
-    println("create table failed: \(database.lastErrorMessage())")
+    print("create table failed: \(database.lastErrorMessage())")
 }
 
 if !database.executeUpdate("insert into test (x, y, z) values (?, ?, ?)", withArgumentsInArray: ["a", "b", "c"]) {
-    println("insert 1 table failed: \(database.lastErrorMessage())")
+    print("insert 1 table failed: \(database.lastErrorMessage())")
 }
 
 if !database.executeUpdate("insert into test (x, y, z) values (?, ?, ?)", withArgumentsInArray: ["e", "f", "g"]) {
-    println("insert 2 table failed: \(database.lastErrorMessage())")
+    print("insert 2 table failed: \(database.lastErrorMessage())")
 }
 
 if let rs = database.executeQuery("select x, y, z from test", withArgumentsInArray: nil) {
@@ -310,10 +310,10 @@ if let rs = database.executeQuery("select x, y, z from test", withArgumentsInArr
         let x = rs.stringForColumn("x")
         let y = rs.stringForColumn("y")
         let z = rs.stringForColumn("z")
-        println("x = \(x); y = \(y); z = \(z)")
+        print("x = \(x); y = \(y); z = \(z)")
     }
 } else {
-    println("select failed: \(database.lastErrorMessage())")
+    print("select failed: \(database.lastErrorMessage())")
 }
 
 database.close()