query_methods.cr: Small typo fix in docs (#76)

This commit is contained in:
Benjamin T 2018-11-07 19:44:53 +01:00 committed by Brian J. Cardiff
parent f70f251849
commit 3820978820

View file

@ -264,7 +264,10 @@ module DB
end
# Performs the `query` and returns a single scalar value
#
# ```
# puts db.scalar("SELECT MAX(name)").as(String) # => (a String)
# ```
def scalar(query, *args)
build(query).scalar(*args)
end