From 7bd8c3debaffbd6adf9e25553298d02fbe9e82ca Mon Sep 17 00:00:00 2001 From: Keita Haga Date: Mon, 6 Dec 2010 06:12:33 +0900 Subject: [PATCH] db.tuples: fix a couple of examples in tutorial article a little --- basis/db/tuples/tuples-docs.factor | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/basis/db/tuples/tuples-docs.factor b/basis/db/tuples/tuples-docs.factor index 3f77f9abaf..8a9e6ba2b6 100644 --- a/basis/db/tuples/tuples-docs.factor +++ b/basis/db/tuples/tuples-docs.factor @@ -233,8 +233,7 @@ T{ book { date-published T{ timestamp { year 2009 } { month 3 } { day 3 } } } { edition 1 } { cover-price 13.37 } -} book set -""" } +} book set""" } "Now we've created a book. Let's save it to the database." { $code """USING: db db.sqlite fry io.files.temp ; : with-book-tutorial ( quot -- ) @@ -243,8 +242,7 @@ T{ book [ book recreate-table book get insert-tuple -] with-book-tutorial -""" } +] with-book-tutorial""" } "Is it really there?" { $code """[ T{ book { title "Factor for Sheeple" } } select-tuples .