Skip to content

Commit aca0cc5

Browse files
author
remi Taylor
committed
[Flex Cloud SQL] Tweak syntax to make more clear in doc snippet
1 parent 336efbb commit aca0cc5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

appengine/cloudsql/app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
DB[:visits].insert user_ip: visitor_ip, timestamp: Time.now
3131

3232
# Retrieve the latest 10 visit records from the database
33-
visits = DB[:visits].order(Sequel.desc(:timestamp)).limit(10)
33+
visits = DB[:visits].limit(10).order Sequel.desc(:timestamp)
3434

3535
response.write "Last 10 visits:\n"
3636

0 commit comments

Comments
 (0)