Skip to content

Commit 75dd3b1

Browse files
committed
Fixes a typo in docs
Courtesy of @weslord Ref: https://github.com/kripken/sql.js/pull/158
1 parent b7c2a63 commit 75dd3b1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

coffee/api.coffee

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class Database
257257
@example Insert values in a table
258258
db.run("INSERT INTO test VALUES (:age, :name)", {':age':18, ':name':'John'});
259259
260-
@return [Database] The database object (usefull for method chaining)
260+
@return [Database] The database object (useful for method chaining)
261261
###
262262
'run' : (sql, params) ->
263263
if not @db then throw "Database closed"
@@ -353,7 +353,7 @@ class Database
353353
@param callback [Function(Object)] A function that will be called on each row of result
354354
@param done [Function] A function that will be called when all rows have been retrieved
355355
356-
@return [Database] The database object. Usefull for method chaining
356+
@return [Database] The database object. Useful for method chaining
357357
358358
@example Read values from a table
359359
db.each("SELECT name,age FROM users WHERE age >= $majority",
@@ -431,16 +431,16 @@ class Database
431431
most recently completed INSERT, UPDATE or DELETE statement on the
432432
database Executing any other type of SQL statement does not modify
433433
the value returned by this function.
434-
434+
435435
@return [Number] the number of rows modified
436436
###
437437
'getRowsModified': -> sqlite3_changes(@db)
438-
438+
439439
### Register a custom function with SQLite
440440
@example Register a simple function
441441
db.create_function("addOne", function(x) {return x+1;})
442442
db.exec("SELECT addOne(1)") // = 2
443-
443+
444444
@param name [String] the name of the function as referenced in SQL statements.
445445
@param func [Function] the actual function to be executed.
446446
###

js/sql-debug.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288111,7 +288111,7 @@ Database = (function() {
288111288111
@example Insert values in a table
288112288112
db.run("INSERT INTO test VALUES (:age, :name)", {':age':18, ':name':'John'});
288113288113

288114-
@return [Database] The database object (usefull for method chaining)
288114+
@return [Database] The database object (useful for method chaining)
288115288115
*/
288116288116

288117288117
Database.prototype['run'] = function(sql, params) {
@@ -288220,7 +288220,7 @@ Database = (function() {
288220288220
@param callback [Function(Object)] A function that will be called on each row of result
288221288221
@param done [Function] A function that will be called when all rows have been retrieved
288222288222

288223-
@return [Database] The database object. Usefull for method chaining
288223+
@return [Database] The database object. Useful for method chaining
288224288224

288225288225
@example Read values from a table
288226288226
db.each("SELECT name,age FROM users WHERE age >= $majority",

0 commit comments

Comments
 (0)