]> gitweb.factorcode.org Git - factor.git/commitdiff
Documentation fixes
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sat, 6 Sep 2008 10:12:28 +0000 (05:12 -0500)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sat, 6 Sep 2008 10:12:28 +0000 (05:12 -0500)
basis/calendar/calendar-docs.factor
basis/http/http-tests.factor
core/alien/alien-docs.factor
core/classes/tuple/tuple-docs.factor

index e3e5338820d50a31c033dd917ffa8536d9a183ef..62ff4ad51779d3066ab726c2562b2cba50e1069c 100644 (file)
@@ -21,8 +21,8 @@ HELP: <date>
 { $description "Returns a timestamp object representing the start of the specified day in your current timezone." }
 { $examples
     { $example "USING: calendar prettyprint ;"
-               "12 25 2010 <date> ."
-                "T{ timestamp f 12 25 2010 0 0 0 T{ duration f 0 0 0 -5 0 0 } }"
+               "2010 12 25 <date> ."
+               "T{ timestamp\n    { year 2010 }\n    { month 12 }\n    { day 25 }\n    { gmt-offset T{ duration { hour -5 } } }\n}"
     }
 } ;
 
index 6da32efdef5b51e87ab5f022438a4af049a5765a..3294940d8988f2b153009b20caf1e4be12f9b1ba 100755 (executable)
@@ -63,7 +63,7 @@ Host: www.sex.com
 
 [
     T{ request
-        { url T{ url host: "www.sex.com" path: "/bar" } }
+        { url T{ url { host "www.sex.com" } { path "/bar" } } }
         { method "HEAD" }
         { version "1.1" }
         { header H{ { "host" "www.sex.com" } } }
index 848af22072457b01f1d7f2a6830571978588343d..814ca8613e97e13aad6f116ba6bbcb9861c8d613 100755 (executable)
@@ -142,7 +142,7 @@ HELP: alien-callback-error
 } ;
 
 HELP: alien-callback
-{ $values { "return" "a C return type" } { "parameters" "a sequence of C parameter types" } { "abi" "one of " { $snippet "\"cdecl\"" } " or " { $snippet "\"stdcall\"" } } { "quot" "a quotation" } { "c-ptr" c-ptr } }
+{ $values { "return" "a C return type" } { "parameters" "a sequence of C parameter types" } { "abi" "one of " { $snippet "\"cdecl\"" } " or " { $snippet "\"stdcall\"" } } { "quot" "a quotation" } { "alien" alien } }
 { $description
     "Defines a callback from C to Factor which accepts the given set of parameters from the C caller, pushes them on the data stack, calls the quotation, and passes a return value back to the C caller. A return type of " { $snippet "\"void\"" } " indicates that no value is to be returned."
     $nl
index 01ade6ad05b31aee0413ed99bc2173ba86551dfa..e16be25ce4314c517caaedccfe307d13f7ea4681 100755 (executable)
@@ -421,7 +421,7 @@ HELP: new
         "IN: scratchpad"
         "TUPLE: employee number name department ;"
         "employee new ."
-        "T{ employee f f f f }"
+        "T{ employee }"
     }
 } ;