]> gitweb.factorcode.org Git - factor.git/commitdiff
alien.syntax: Fix docs for CALLBACK: (no semi)
authorDoug Coleman <doug.coleman@gmail.com>
Tue, 1 Mar 2016 20:42:17 +0000 (12:42 -0800)
committerDoug Coleman <doug.coleman@gmail.com>
Tue, 1 Mar 2016 20:42:17 +0000 (12:42 -0800)
basis/alien/syntax/syntax-docs.factor

index 80f258f08a4bb42eed6df50ecc69cfc3b38b4220..517c691b41aa75154509f6d521e7c04bbda1671c 100644 (file)
@@ -91,7 +91,7 @@ HELP: CALLBACK:
 { $description "Defines a new function pointer C type word " { $snippet "type" } ". The newly defined word works both as a C type and as a wrapper for " { $link alien-callback } " for callbacks that accept the given return type and parameters. The ABI of the callback is decided from the ABI of the active " { $link POSTPONE: LIBRARY: } " declaration." }
 { $examples
     { $code
-        "CALLBACK: bool FakeCallback ( int message, void* payload ) ;"
+        "CALLBACK: bool FakeCallback ( int message, void* payload )"
         ": MyFakeCallback ( -- alien )"
         "    [| message payload |"
         "        \"message #\" write"