Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian J. Cardiff committed Apr 10, 2017
1 parent c096294 commit 5697bd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/db/query_methods.cr
Expand Up @@ -178,7 +178,7 @@ module DB
# read as a tuple of the given *types*.
#
# ```
# contacts = db.query_all "select name, age from contactas", as: {String, Int32}
# contacts = db.query_all "select name, age from contacts", as: {String, Int32}
# ```
def query_all(query, *args, as types : Tuple)
query_all(query, *args) do |rs|
Expand All @@ -190,7 +190,7 @@ module DB
# column's value of each row is read as the given *type*.
#
# ```
# names = db.query_all "select name from contactas", as: String
# names = db.query_all "select name from contacts", as: String
# ```
def query_all(query, *args, as type : Class)
query_all(query, *args) do |rs|
Expand Down

0 comments on commit 5697bd5

Please sign in to comment.