diff --git a/basis/db/tuples/tuples-docs.factor b/basis/db/tuples/tuples-docs.factor index 8a9e6ba2b6..36e6b4bf2c 100644 --- a/basis/db/tuples/tuples-docs.factor +++ b/basis/db/tuples/tuples-docs.factor @@ -70,14 +70,13 @@ HELP: define-persistent { "the name of a database column that maps to the slot" } { "a database type (see " { $link "db.types" } ")" } } "Throws an error if the slot name (column one from each row) is not a slot in the tuple or its superclases." } { $examples - { $unchecked-example "USING: db.tuples db.types ;" + { $code "USING: db.tuples db.types ;" "TUPLE: boat id year name ;" "boat \"BOAT\" {" " { \"id\" \"ID\" +db-assigned-id+ }" " { \"year\" \"YEAR\" INTEGER }" " { \"name\" \"NAME\" TEXT }" "} define-persistent" - "" } } ; diff --git a/basis/timers/timers-docs.factor b/basis/timers/timers-docs.factor index f3a3e4437b..9a9b29cbf3 100644 --- a/basis/timers/timers-docs.factor +++ b/basis/timers/timers-docs.factor @@ -22,10 +22,9 @@ HELP: every { "timer" timer } } { $description "Creates a timer that calls the quotation repeatedly, using " { $snippet "duration" } " as the frequency. The first call of " { $snippet "quot" } " will happen immediately. If the quotation throws an exception, the timer will stop." } { $examples - { $unchecked-example + { $code "USING: timers io calendar ;" """[ "Hi Buddy." print flush ] 10 seconds every drop""" - "" } } ; @@ -33,10 +32,9 @@ HELP: later { $values { "quot" quotation } { "delay-duration" duration } { "timer" timer } } { $description "Sleeps for " { $snippet "duration" } " and then calls a " { $snippet "quot" } ". The user may cancel the timer before " { $snippet "quot" } " runs. This timer is not repeated." } { $examples - { $unchecked-example + { $code "USING: timers io calendar ;" """[ "Break's over!" print flush ] 15 minutes later drop""" - "" } } ; @@ -46,10 +44,9 @@ HELP: delayed-every { "timer" timer } } { $description "Creates a timer that calls " { $snippet "quot" } " repeatedly, waiting " { $snippet "duration" } " before calling " { $snippet "quot" } " the first time and then waiting " { $snippet "duration" } " between further calls. If the quotation throws an exception, the timer will stop." } { $examples - { $unchecked-example + { $code "USING: timers io calendar ;" """[ "Hi Buddy." print flush ] 10 seconds every drop""" - "" } } ;