From 382097882035a3a883008eacf0170d91ff151bc0 Mon Sep 17 00:00:00 2001 From: Benjamin T <1044363+vtambourine@users.noreply.github.com> Date: Wed, 7 Nov 2018 19:44:53 +0100 Subject: [PATCH] query_methods.cr: Small typo fix in docs (#76) --- src/db/query_methods.cr | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/db/query_methods.cr b/src/db/query_methods.cr index f068782..8c9a0af 100644 --- a/src/db/query_methods.cr +++ b/src/db/query_methods.cr @@ -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