Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix small typo, "usefull" to "useful"
  • Loading branch information
weslord authored Aug 2, 2016
commit 158009dca0db7cb9c9843ead2eb97b5438ff49c9
4 changes: 2 additions & 2 deletions coffee/api.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class Database
@example Insert values in a table
db.run("INSERT INTO test VALUES (:age, :name)", {':age':18, ':name':'John'});

@return [Database] The database object (usefull for method chaining)
@return [Database] The database object (useful for method chaining)
###
'run' : (sql, params) ->
if not @db then throw "Database closed"
Expand Down Expand Up @@ -353,7 +353,7 @@ class Database
@param callback [Function(Object)] A function that will be called on each row of result
@param done [Function] A function that will be called when all rows have been retrieved

@return [Database] The database object. Usefull for method chaining
@return [Database] The database object. Useful for method chaining

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