]> gitweb.factorcode.org Git - factor.git/commitdiff
docs: Fix help-lint-all mistakes.
authorDoug Coleman <doug.coleman@gmail.com>
Sat, 7 Jul 2018 05:44:46 +0000 (00:44 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Sat, 7 Jul 2018 06:13:19 +0000 (01:13 -0500)
33 files changed:
basis/alien/libraries/libraries-docs.factor
basis/bootstrap/image/primitives/primitives-docs.factor
basis/compiler/cfg/builder/builder-docs.factor
basis/compiler/cfg/linear-scan/assignment/assignment-docs.factor
basis/compiler/cfg/linear-scan/assignment/assignment.factor
basis/compiler/cfg/stacks/local/local-docs.factor
basis/cpu/architecture/architecture-docs.factor
basis/cpu/architecture/architecture.factor
basis/english/english-docs.factor
basis/help/topics/topics.factor
basis/io/directories/directories-docs.factor
basis/lists/lazy/lazy-docs.factor
basis/math/vectors/vectors-docs.factor
basis/opengl/shaders/shaders-docs.factor
basis/stack-checker/dependencies/dependencies-docs.factor
basis/suffix-arrays/suffix-arrays-docs.factor
basis/typed/typed-docs.factor
basis/ui/backend/gtk/gtk-docs.factor
basis/vocabs/metadata/metadata-docs.factor
basis/wrap/words/words-docs.factor
basis/wrap/wrap-docs.factor
core/alien/alien-docs.factor
core/classes/tuple/tuple-docs.factor
core/kernel/kernel-docs.factor
core/math/math-docs.factor
core/sequences/sequences-docs.factor
extra/ctags/ctags-docs.factor
extra/fuel/help/help-docs.factor
extra/gpu/shaders/shaders-docs.factor
extra/odbc/odbc-docs.factor
extra/successor/successor-docs.factor
extra/trees/trees-docs.factor
extra/ui/gadgets/charts/lines/lines-docs.factor

index 366cc91da6c2941d407499dcdaebdc2391e121b6..582b607f32f676b63a09acdce6f3df7524ced1b7 100644 (file)
@@ -1,7 +1,7 @@
 ! Copyright (C) 2009 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: alien alien.syntax assocs help.markup help.syntax strings words
-;
+USING: alien alien.syntax assocs help.markup help.syntax kernel
+strings ;
 IN: alien.libraries
 
 HELP: add-library
@@ -73,7 +73,7 @@ HELP: library
 } ;
 
 HELP: library-dll
-{ $values { "name" string } { "dll" "a DLL handle" } }
+{ $values { "obj" object } { "dll" "a DLL handle" } }
 { $description "Looks up a library by logical name and outputs a handle which may be passed to " { $link dlsym } " or " { $link dlclose } "." } ;
 
 HELP: remove-library
index 78b9f080569e9cd8aeb74c4bb3bf6f5386a059c7..ce435ac5a73a529d0e5fd3bfb36cd698a254a00b 100644 (file)
@@ -19,7 +19,7 @@ HELP: primitive-quot
 { $description "Creates the defining quotation for the primitive. If 'vm-func' is a string, then it is prefixed with 'primitive_' and a quotation calling that C++ function is generated." } ;
 
 ARTICLE: "bootstrap.image.primitives" "Bootstrap primitives"
-"This vocab contains utilities for declaring primitives to be added to the bootstrap image. It is used by " { $vocab-link "bootstrap.primitives" }
+"This vocab contains utilities for declaring primitives to be added to the bootstrap image. It is used by the file " { $snippet "resource:core/bootstrap/primitives.factor" }
 $nl
 { $link all-primitives } " is an assoc where all primitives are declared. See that constant for a description of the format." ;
 
index f57320b4b5e88da92e34693ece3cbc62f274941b..308c3e4ff03b8161cd92f73e7378463e9ca28b8a 100644 (file)
@@ -1,7 +1,7 @@
-USING: assocs compiler.cfg compiler.cfg.builder.blocks
-compiler.cfg.instructions compiler.cfg.stacks.local compiler.tree
-help.markup help.syntax kernel literals math multiline quotations
-sequences vectors words ;
+USING: arrays assocs compiler.cfg compiler.cfg.builder.blocks
+compiler.cfg.instructions compiler.cfg.stacks.local
+compiler.tree help.markup help.syntax kernel literals math
+multiline quotations sequences vectors words ;
 IN: compiler.cfg.builder
 
 <<
@@ -104,7 +104,7 @@ HELP: end-word
 { $description "Ends the word by adding a basic block containing a " { $link ##return } " instructions to the " { $link cfg } "." } ;
 
 HELP: height-changes
-{ $values { "#shuffle" #shuffle } { "height-changes" sequence } }
+{ $values { "#shuffle" #shuffle } { "height-changes" pair } }
 { $description "Returns a two-tuple which represents how much the " { $link #shuffle } " node increases or decreases the data and retainstacks." }
 { $examples
   { $example
@@ -115,7 +115,7 @@ HELP: height-changes
 } ;
 
 HELP: out-vregs/stack
-{ $values { "#shuffle" #shuffle } { "seq" sequence } }
+{ $values { "#shuffle" #shuffle } { "pair" sequence } }
 { $description "Returns a sequence of what vregs are on which stack locations after the shuffle instruction." } ;
 
 HELP: trivial-branch?
index 6d9ad819bddf27c3502dd98c09482cff5266ac5a..646c0d86744be270f7542a8cfda11f93dab9279d 100644 (file)
@@ -72,7 +72,7 @@ HELP: vreg>reg
 { $see-also lookup-spill-slot pending-interval-assoc } ;
 
 HELP: vregs>regs
-{ $values { "assoc" "an " { $link assoc } " (set) of virtual registers" } { "assoc" assoc } }
+{ $values { "assoc" "an " { $link assoc } " (set) of virtual registers" } { "assoc'" assoc } }
 { $description "Creates a mapping of virtual registers to registers." } ;
 
 HELP: vreg>spill-slot
index b5ffb4d0eee653bccfa38985fff6c08437457fe7..37fb24b2d482dbc5783bc0b551b310010cc59065 100644 (file)
@@ -29,7 +29,7 @@ SYMBOL: pending-interval-assoc
 : remove-pending ( live-interval -- )
     vreg>> pending-interval-assoc get delete-at ;
 
-: vreg>spill-slot ( vreg -- slot )
+: vreg>spill-slot ( vreg -- spill-slot )
     dup rep-of lookup-spill-slot ;
 
 : vreg>reg ( vreg -- reg/spill-slot )
index a3e7d8919bef0aa71ca2dd8baa9667f8fc0495d1..0131a1098d478fc5dd7918320d17b7c739b1d06b 100644 (file)
@@ -51,7 +51,7 @@ HELP: height-state
 { $see-also inc-stack reset-incs } ;
 
 HELP: height-state>insns
-{ $values { "state" sequence } { "insns" sequence } }
+{ $values { "height-state" height-state } { "insns" sequence } }
 { $description "Converts a " { $link height-state } " tuple to 0-2 stack height change instructions." }
 { $examples
   "In this example the datastacks height is increased by 4 and the retainstacks decreased by 2."
@@ -67,7 +67,7 @@ HELP: inc-stack
 { $description "Increases or decreases the data or retain stack depending on if loc is a " { $link ds-loc } " or " { $link rs-loc } " instance. An " { $link ##inc } " instruction will later be inserted." } ;
 
 HELP: local-loc>global
-{ $values { "loc" loc } { "bb" basic-block } { "loc'" loc } }
+{ $values { "loc" loc } { "height-state" height-state } { "loc'" loc } }
 { $description "Translates a stack location relative to a block to an absolute one. The word does the opposite to " { $link global-loc>local } "." } ;
 
 HELP: loc>vreg
@@ -76,10 +76,11 @@ HELP: loc>vreg
 
 HELP: local-kill-set
 { $values
-  { "ds-height" integer }
+  { "ds-begin" integer }
   { "ds-inc" integer }
-  { "rs-height" integer }
+  { "rs-begin" integer }
   { "rs-inc" integer }
+  { "set" hash-set }
 }
 { $description "The set of stack locations that was killed. Locations on a stack are deemed killed if that stacks height is decremented." }
 { $see-also compute-local-kill-set } ;
index 4adaae350a71689f5d0ab79e0d93e74a5af2ccc9..8d1788b57f73a7bb2a773e0e2bd46e71cde6aa35 100644 (file)
@@ -75,6 +75,7 @@ init-relocation [ RAX RBX 3 -14 RCX RDX %write-barrier ] B{ } make disassemble
 
 HELP: %alien-invoke
 { $values
+  { "varargs?" boolean }
   { "reg-inputs" sequence }
   { "stack-inputs" sequence }
   { "reg-outputs" sequence }
@@ -292,12 +293,18 @@ HELP: %store-memory-imm
 HELP: %test-imm-branch
 { $values
   { "label" "branch destination" }
+  { "cc" "comparison symbol" }
   { "src1" "register" }
   { "src2" "immediate" }
-  { "cc" "comparison symbol" }
 } { $description "Emits a TEST instruction with a register and an immediate, followed by a branch." } ;
 
 HELP: %unbox
+{ $values
+  { "dst" "destination register" }
+  { "src" "source register" }
+  { "func" "function?" }
+  { "rep" representation }
+}
 { $description "Call a function to convert a tagged pointer into a value that can be passed to a C function, or returned from a callback." } ;
 
 HELP: %vector>scalar
index 55b13c48b56b41615646a5f7776e7d8424d04ffe..83de9fbf6b64f67bfc475b5dd793c4d4a9b6f531 100644 (file)
@@ -522,7 +522,7 @@ HOOK: fused-unboxing? cpu ( -- ? )
 HOOK: immediate-arithmetic? cpu ( n -- ? )
 HOOK: immediate-bitwise? cpu ( n -- ? )
 HOOK: immediate-comparand? cpu ( n -- ? )
-HOOK: immediate-store? cpu ( obj -- ? )
+HOOK: immediate-store? cpu ( n -- ? )
 
 M: object immediate-comparand? ( n -- ? )
     {
index 4cbe1a5e96659a9a9516cf259fdc8a1dd87810ee..e025a04aa993ff62e9942916a40b4141a10c7267 100644 (file)
@@ -110,7 +110,7 @@ HELP: count-of-things
 } ;
 
 HELP: ?pluralize
-{ $values { "count" number } { "singular" string } { "singluar/plural" string } }
+{ $values { "count" number } { "singular" string } { "singular/plural" string } }
 { $description "A simpler variant of " { $link count-of-things } " which omits its input value from the output. As with " { $link count-of-things } ", " { $snippet "word" } " is expected to be in singular form." }
 { $notes { $list $keep-case $0-plurality } }
 { $examples
@@ -189,7 +189,7 @@ HELP: comma-list
 } ;
 
 HELP: or-markup-example
-{ $values { "markup" "a sequence of markup elements" } { "classes" "a sequence of words" } }
+{ $values { "classes" "a sequence of words" } { "markup" "a sequence of markup elements" } }
 { $description "Used to implement " { $link $or-markup-example } " and demonstrate " { $link comma-list } "." }
 { $examples { "See the examples in " { $link $or-markup-example } "." } } ;
 
index e52486d3ee1782e30335002d42fe323437026837..635b459d0dbec506cb88aa8f435b0e9a9b70c4e5 100644 (file)
@@ -42,7 +42,7 @@ GENERIC: valid-article? ( topic -- ? )
 GENERIC: article-title ( topic -- string )
 GENERIC: article-name ( topic -- string )
 GENERIC: article-content ( topic -- content )
-GENERIC: article-parent ( topic -- parent )
+GENERIC: article-parent ( topic -- parent/f )
 GENERIC: set-article-parent ( parent topic -- )
 
 M: object article-name article-title ;
index caf2913cf24d40b313ade75e193c0abc5c4baccd..db49a4bdd0d873e88f304f631f526e20caaa12a4 100644 (file)
@@ -20,7 +20,7 @@ $nl
   "This variable should never be set directly; instead, use " { $link set-current-directory } " or " { $link with-directory } ". This preserves the invariant that the value of this variable is an absolute path." } ;
 
 HELP: make-parent-directories
-{ $values { "path" "a pathname string" } }
+{ $values { "filename" "a pathname string" } }
 { $description "Creates all parent directories of the path which do not yet exist." }
 { $errors "Throws an error if the directories could not be created." } ;
 
index ac9e053985f4617670f25a9d08940caeeef3ff6a..fa43da2186b2bd211a896301c7f7f6523c409756 100644 (file)
@@ -109,11 +109,11 @@ HELP: lappend-lazy
 { $description "Perform a similar functionality to that of the " { $link append } " word, but in a lazy manner. No evaluation of the list elements occurs initially but a " { $link lazy-append } " object is returned which conforms to the list protocol. Calling " { $link car } ", " { $link cdr } " or " { $link nil? } " on this will evaluate elements as required. Successive calls to " { $link cdr } " will iterate through list1, followed by list2." } ;
 
 HELP: lfrom-by
-{ $values { "n" integer } { "quot" { $quotation ( n -- o ) } } { "lazy-from-by" "a lazy list of integers" } }
+{ $values { "n" integer } { "quot" { $quotation ( n -- o ) } } { "result" "a lazy list of integers" } }
 { $description "Return an infinite lazy list of values starting from n, with each successive value being the result of applying quot to the previous value." } ;
 
 HELP: lfrom
-{ $values { "n" integer } { "list" "a lazy list of integers" } }
+{ $values { "n" integer } { "result" "a lazy list of integers" } }
 { $description "Return an infinite lazy list of incrementing integers starting from n." } ;
 
 HELP: sequence-tail>list
index 5c928f8e5b0144e68411c348972e8b6aad539d31..24f5866d422be9979c985dba0768b7a3a39b98dd 100644 (file)
@@ -304,7 +304,7 @@ HELP: vmin
 { $examples { $example "USING: math.vectors prettyprint ;" "{ 1 2 5 } { -7 6 3 } vmin ." "{ -7 2 3 }" } } ;
 
 HELP: vclamp
-{ $values { "v" "a sequence of real numbers" } { "min" "a sequence of real numbers" } { "max" "a sequence of real numbers" } }
+{ $values { "v" "a sequence of real numbers" } { "min" "a sequence of real numbers" } { "max" "a sequence of real numbers" } { "w" "a sequence of real numbers" } }
 { $description "Creates a sequence where each element is clamped to the minimum and maximum elements of the " { $snippet "min" } " and " { $snippet "max" } " sequences." }
 { $examples
   { $example
index 705136438636e0409f96d45c47d53450dd7a8f69..7b314f92edf596c1aa4f92f71834a96f56e76895 100644 (file)
@@ -6,6 +6,7 @@ HELP: (gl-program)
 { $values
   { "shaders" sequence }
   { "quot" quotation }
+  { "program" "a new " { $link gl-program } }
 } { $description
     "Creates a gl program and attaches the shaders to it. Then applies the quotation to the program and finally links it."
   }
index d80880ad705e0388f79e2cb43536a59286165e5f..2f5167eb8a9420049c943434a2c391db32e353d2 100644 (file)
@@ -11,7 +11,7 @@ HELP: +definition+
 { $description "Word that indicates that the dependency is a definition dependency. It is a dependency among two words in which one word depends on the definition of the another. For example, if two words are defined as " { $snippet ": o ( -- ) i ;" } " and " { $snippet ": i ( -- ) ; inline" } ", then 'o' has a definition dependency to 'i' because 'i' is inline. If the definition of 'i' changes 'o' must be recompiled." } ;
 
 HELP: add-depends-on-class
-{ $values { "obj" classoid } }
+{ $values { "classoid" classoid } }
 { $description "Adds a " { $link +conditional+ } " dependency from the word to the classes mentioned in the classoid." } ;
 
 HELP: conditional-dependencies
index de8b0f23669077199eebc9a731347916a50ec743..455756bd7dfda427678752157c31c89503f044ae 100644 (file)
@@ -7,7 +7,7 @@ IN: suffix-arrays
 HELP: >suffix-array
 { $values
      { "seq" sequence }
-     { "array" array } }
+     { "suffix-array" array } }
 { $description "Creates a suffix array from the input sequence. Suffix arrays are arrays of slices." } ;
 
 HELP: SA{
index 8f2e0e6f36872247344a6278a0c26d5dcbd3a263..262a0a03e0e25ef2487b0388023a1939a071861d 100644 (file)
@@ -32,13 +32,13 @@ HELP: TYPED::
 { $example
 "USING: kernel math math.libm prettyprint typed ;
 IN: scratchpad
-
+<<
 TYPED:: quadratic-roots ( a: float b: float c: float -- q1: float q2: float )
     b neg
     b sq 4.0 a * c * - fsqrt
     [ + ] [ - ] 2bi
     [ 2.0 a * / ] bi@ ;
-
+>>
 1 0 -9/4 quadratic-roots [ . ] bi@"
 "1.5
 -1.5" } } ;
index 83e214dd4f5e304403c34156d1acc4ae78230eea..2e436341cb5418fb16b6abe3e59c04abb77cb550 100644 (file)
@@ -12,14 +12,14 @@ HELP: icon-data
 
 HELP: key-sym
 { $values
-  { "event" GdkEventKey }
-  { "sym/f" { $maybe string } }
+  { "keyval" GdkEventKey }
+  { "string/f" { $maybe string } }
   { "action?" boolean }
 } { $description "Gets the key symbol and action indicator from a " { $link GdkEventKey } " struct. If 'action?' is " { $link t } ", then the key is one of the special keys in " { $link codes } "." } ;
 
 HELP: on-configure
 { $values
-  { "win" alien }
+  { "window" alien }
   { "event" alien }
   { "user-data" alien }
   { "?" boolean }
index 3fe93916b6dae077f898f63441b33f6f0bbb5df9..9081619e6cb0af2ef8add86d4da97446992b3811 100644 (file)
@@ -39,7 +39,7 @@ ARTICLE: "vocabs.metadata" "Vocabulary metadata"
 ABOUT: "vocabs.metadata"
 
 HELP: vocab-file-lines
-{ $values { "vocab" "a vocabulary specifier" } { "name" string } { "lines" { $maybe { $sequence "lines" } } } }
+{ $values { "vocab" "a vocabulary specifier" } { "name" string } { "lines/f" { $maybe { $sequence "lines" } } } }
 { $description "Outputs the lines of the file named " { $snippet "name" } " from the vocabulary's directory, or " { $link f } " if the file does not exist." } ;
 
 HELP: set-vocab-file-lines
index e3a77e127a0ed1f73d776f1b41623bf60b93994b..3c54dc4ffd79b47ebb1b6df976d921954ab6a499 100644 (file)
@@ -14,7 +14,7 @@ ARTICLE: "wrap.words" "Word object wrapping"
 } ;
 
 HELP: wrap-words
-{ $values { "words" { "a sequence of " { $instance wrapping-word } "s" } } { "line-max" integer } { "line-ideal" integer } { "lines" "a sequence of sequences of words" } }
+{ $values { "words" { "a sequence of " { $instance wrapping-word } "s" } } { "width" integer } { "lines" "a sequence of sequences of words" } }
 { $description "Divides the words into lines, where the sum of the lengths of the words on a line (not counting breaks at the end of the line) is at most the given maximum. The returned set of lines is optimized to minimize the square of the deviation of each line from the ideal width. It is not guaranteed to be the minimal number of lines. Every line except for the first one starts with a non-break, and every one but the last ends with a break." } ;
 
 HELP: wrapping-word
index 0f6b7f5a947e9d09f0696bee9e7a9ba1d39e44ef..fd4e345750e15aee5097112e30a7e6dba888e8b1 100644 (file)
@@ -1,6 +1,6 @@
 ! Copyright (C) 2009 Daniel Ehrenberg
 ! See http://factorcode.org/license.txt for BSD license.
-USING: help.syntax help.markup strings math kernel ;
+USING: arrays help.markup help.syntax kernel math strings ;
 IN: wrap
 
 ABOUT: "wrap"
@@ -19,5 +19,5 @@ HELP: element
 } ;
 
 HELP: wrap
-{ $values { "elements" { $sequence element } } { "width" real } }
+{ $values { "elements" { $sequence element } } { "width" real } { "array" array } }
 { $description "Break the " { $snippet "elements" } " into lines such that the total width of each line tries to be less than " { $snippet "width" } " while attempting to minimize the raggedness represented by the amount of space at the end of each line. Returns an array of lines." } ;
index 2d4caa573699732a969b0bc501fe73ec8a0830da..16a38fac40a7bfcb16b42fa394219776391940eb 100644 (file)
@@ -95,7 +95,7 @@ HELP: c-ptr
 { $class-description "Class of objects consisting of aliens, byte arrays and " { $link f } ". These objects all can be used as values of " { $link pointer } " C types." } ;
 
 HELP: alien-invoke
-{ $values { "args..." "zero or more objects passed to the C function" } { "return" "a C return type" } { "library" "a logical library name" } { "function" "a C function name" } { "parameters" "a sequence of C parameter types" } { "return..." "the return value of the function, if not " { $link void } } }
+{ $values { "args..." "zero or more objects passed to the C function" } { "return" "a C return type" } { "library" "a logical library name" } { "function" "a C function name" } { "parameters" "a sequence of C parameter types" } { "varargs?" boolean } { "return..." "the return value of the function, if not " { $link void } } }
 { $description "Calls a C library function with the given name. Input parameters are taken from the data stack, and the return value is pushed on the data stack after the function returns. A return type of " { $link void } " indicates that no value is to be expected." }
 { $notes "C type names are documented in " { $link "c-types-specs" } "." }
 { $errors "Throws an " { $link callsite-not-compiled } " if the word calling " { $link alien-invoke } " was not compiled with the optimizing compiler." } ;
index 4ee30d1d8be7ba8c286e5320b7fbc0adb38f132d..b1d20a04d648d0abfff2e2d97b0dd8a4465f593d 100644 (file)
@@ -455,7 +455,7 @@ HELP: bad-superclass
 { $error-description "Thrown if an attempt is made to subclass a class that is not a tuple class, or a tuple class declared " { $link POSTPONE: final } "." } ;
 
 HELP: ?offset-of-slot
-{ $values { "name" string } { "tuple" tuple } { "n" { $maybe integer } } }
+{ $values { "name" string } { "tuple" tuple } { "n/f" { $maybe integer } } }
 { $description "Returns the offset of a tuple slot accessed by " { $snippet "name" } ", or " { $link f } " if no slot with that name." } ;
 
 HELP: offset-of-slot
index 3f290bdea7391c33513eb6cf843ed93faaf6034f..ad0009e95f8bbfb17d4bde064377be9c3f9e8755 100644 (file)
@@ -794,7 +794,7 @@ HELP: curried
 { curry curried compose prepose composed } related-words
 
 HELP: 2curry
-{ $values { "obj1" object } { "obj2" object } { "quot" callable } { "curry" curried } }
+{ $values { "obj1" object } { "obj2" object } { "quot" callable } { "curried" curried } }
 { $description "Outputs a " { $link callable } " which pushes " { $snippet "obj1" } " and " { $snippet "obj2" } " and then calls " { $snippet "quot" } "." }
 { $notes "This operation is efficient and does not copy the quotation." }
 { $examples
@@ -802,12 +802,12 @@ HELP: 2curry
 } ;
 
 HELP: 3curry
-{ $values { "obj1" object } { "obj2" object } { "obj3" object } { "quot" callable } { "curry" curried } }
+{ $values { "obj1" object } { "obj2" object } { "obj3" object } { "quot" callable } { "curried" curried } }
 { $description "Outputs a " { $link callable } " which pushes " { $snippet "obj1" } ", " { $snippet "obj2" } " and " { $snippet "obj3" } ", and then calls " { $snippet "quot" } "." }
 { $notes "This operation is efficient and does not copy the quotation." } ;
 
 HELP: with
-{ $values { "param" object } { "obj" object } { "quot" { $quotation ( param elt -- ... ) } } { "curry" curried } }
+{ $values { "param" object } { "obj" object } { "quot" { $quotation ( param elt -- ... ) } } { "curried" curried } }
 { $description "Partial application on the left. The following two lines are equivalent:"
     { $code "swap [ swap A ] curry B" }
     { $code "[ A ] with B" }
@@ -825,7 +825,7 @@ HELP: 2with
   { "param2" object }
   { "obj" object }
   { "quot" { $quotation ( param1 param2 elt -- ... ) } }
-  { "curry" curried }
+  { "curried" curried }
 }
 { $description "Partial application on the left of two parameters." } ;
 
@@ -842,7 +842,7 @@ HELP: compose
 } ;
 
 HELP: prepose
-{ $values { "quot1" callable } { "quot2" callable } { "compose" composed } }
+{ $values { "quot1" callable } { "quot2" callable } { "composed" composed } }
 { $description "Quotation composition. Outputs a " { $link callable } " which calls " { $snippet "quot2" } " followed by " { $snippet "quot1" } "." }
 { $notes "See " { $link compose } " for details." } ;
 
index c37e788efa039df97b175b235d06b02abf068108..236ba6f4cc72bca9deafe4f860b4ff523f365780 100644 (file)
@@ -277,7 +277,7 @@ HELP: if-zero
 
 HELP: when-zero
 { $values
-     { "n" number } { "quot" "the first quotation of an " { $link if-zero } } }
+     { "n" number } { "quot" "the first quotation of an " { $link if-zero } } { "x" object } }
 { $description "Makes an implicit check if the number is zero. A zero is dropped and the " { $snippet "quot" } " is called." }
 { $examples "This word is equivalent to " { $link if-zero } " with an empty second quotation:"
     { $example
index 1c8dcf80c081f0661f99f9f7ef21f0e34edee583..fbb65a91335bf37b9eaac91dff0641a92c06fdac 100644 (file)
@@ -1210,12 +1210,12 @@ HELP: supremum
 { min max supremum infimum } related-words
 
 HELP: shortest
-{ $values { "seq" sequence } { "elt" object } }
-{ $description "Outputs the shortest element of " { $snippet "seq" } "." } ;
+{ $values { "seqs" sequence } { "elt" object } }
+{ $description "Outputs the shortest sequence from " { $snippet "seqs" } "." } ;
 
 HELP: longest
-{ $values { "seq" sequence } { "elt" object } }
-{ $description "Outputs the longest element of " { $snippet "seq" } "." } ;
+{ $values { "seqs" sequence } { "elt" object } }
+{ $description "Outputs the longest sequence from " { $snippet "seqs" } "." } ;
 
 { shortest longest } related-words
 
index 64a645df6469adb03f9f51cc0257ab9ad0774e36..c4312dcf48ecf3de456d0c12ead1e9e39e7dfead 100644 (file)
@@ -20,7 +20,7 @@ HELP: write-ctags
 } ;
 
 HELP: ctags
-{ $values { "alist" "ctags" } }
+{ $values { "ctags" "alist" } }
 { $description "Make a sequence of ctags from " { $link all-words } ", sorted by word name." } ;
 
 ABOUT: "ctags"
index 6cbdcc27cc10915b5afa94f8ad3de92e027e0f50..0aff60a5c724d05bc8165eed522af375e6f6937f 100644 (file)
@@ -6,7 +6,7 @@ HELP: article-parents
 { $description "All the parent articles for the article and ensures that the ancestor always is 'handbook'." } ;
 
 HELP:  get-article
-{ $values { "name" string } { "str" string } }
+{ $values { "name" string } { "element" string } }
 { $description "If an article and a vocab share name, we render the vocab instead." } ;
 
 HELP: find-word
index e00defe6260423c0cb43269c058cdf6927c7e7a7..f8d9d30aa28e3bf179e72e7c90c6776d2ef61c26 100644 (file)
@@ -31,6 +31,7 @@ HELP: <vertex-array-object>
   { "vertex-buffer" "a vertex buffer" }
   { "program-instance" program-instance }
   { "format" vertex-format }
+  { "vertex-array" vertex-array }
 }
 { $description "Creates a new vertex array object." } ;
 
index 52a9ee8c482a885b1ab01e8c5ab01460d8a086e6..6f1c6448bc377c6d81ed5f4a1d071c3bf6857db3 100644 (file)
@@ -77,7 +77,7 @@ HELP: odbc-number-of-columns
 HELP: odbc-describe-column
 { $values
     { "statement" "an ODBC statement handle" }
-    { "n" "a column number starting from one" }
+    { "columnNumber" "a column number starting from one" }
     { "column" "a column object" }
 }
 { $description
@@ -88,7 +88,7 @@ HELP: odbc-describe-column
 HELP: odbc-get-field
 { $values
     { "statement" "an ODBC statement handle" }
-    { "column" "a column number starting from one or a <column> object" }
+    { "column!" "a column number starting from one or a <column> object" }
     { "field" "a <field> object" }
 }
 { $description
index fad0a23d11fb9c5dafa6b2b5ff88f5008eb054e3..025ff47f3862f048bc118f6f6ecc737510c52c98 100644 (file)
@@ -6,7 +6,7 @@ USING: help.markup help.syntax successor strings ;
 IN: succesor
 
 HELP: successor
-{ $values { "str" string } }
+{ $values { "str" string } { "str'" string } }
 { $description
     "Returns the successor to " { $snippet "str" } ". The successor is calculated by incrementing characters starting from the rightmost alphanumeric (or the rightmost character if there are no alphanumerics) in the string. Incrementing a digit always results in another digit, and incrementing a letter results in another letter of the same case. "
     $nl
index 5df07e4ef301c909e2aef08fe0d0d72ae30fa46f..0a9efeaab1660d58c86f2e90f2308ba3a60e69bc 100644 (file)
@@ -177,14 +177,14 @@ HELP: first-key
 HELP: pop-tree-left
 { $values
     { "tree" tree }
-    { "pair/f" { $maybe pair } }
+    { "node/f" { $maybe pair } }
 }
 { $description "Removes and returns a key-value mapping associated with the lowest key in this map, or " { $link f } " if the map is empty." } ;
 
 HELP: pop-tree-right
 { $values
     { "tree" tree }
-    { "pair/f" { $maybe pair } }
+    { "node/f" { $maybe pair } }
 }
 { $description "Removes and returns a key-value mapping associated with the highest key in this map, or " { $link f } " if the map is empty." } ;
 
index 8fc9cf1f872b0597bef90273112f122eca6d55ca..bde78cc9ee9e16ce603fc629bb1fd9d0a53bddd8 100644 (file)
@@ -57,6 +57,12 @@ $nl
 
 HELP: y-at
 { $description "Given two points on a straight line and an " { $snippet "x" } " coordinate, calculate the " { $snippet "y" } " coordinate at " { $snippet "x" } " on that line." }
+{ $values
+    { "x" object }
+    { "point1" object }
+    { "point2" object }
+    { "y" object }
+}
 { $examples
     { $example
         "USING: ui.gadgets.charts.lines.private prettyprint ;"
@@ -77,6 +83,12 @@ HELP: y-at
 
 HELP: calc-x
 { $description "Given the " { $snippet "slope" } " of a line and a random " { $snippet "point" } " belonging to that line, calculate the " { $snippet "x" } " coordinate corresponding to the given " { $snippet "y" } "." }
+{ $values
+    { "slope" object }
+    { "y" object }
+    { "point" object }
+    { "x" object }
+}
 { $examples
     { $example
         "USING: ui.gadgets.charts.lines.private prettyprint ;"
@@ -92,6 +104,12 @@ HELP: calc-x
 
 HELP: calc-y
 { $description "Given the " { $snippet "slope" } " of a line and a random " { $snippet "point" } " belonging to that line, calculate the " { $snippet "y" } " coordinate corresponding to the given " { $snippet "x" } "." }
+{ $values
+    { "slope" object }
+    { "x" object }
+    { "point" object }
+    { "y" object }
+}
 { $examples
     { $example
         "USING: ui.gadgets.charts.lines.private prettyprint ;"
@@ -107,6 +125,11 @@ HELP: calc-y
 
 HELP: calc-line-slope
 { $description "Given the two points belonging to a straight line, calculate the " { $snippet "slope" } " of the line, assuming the line equation is " { $snippet "y(x) = slope * x + b" } "."
+{ $values
+    { "point1" object }
+    { "point2" object }
+    { "slope" object }
+}
 $nl
 "The formula for the calculation is " { $snippet "slope = (y1-y2) / (x1-x2)" } ", therefore it'll throw a division by zero error if both points have the same " { $snippet "x" } " coordinate." }
 { $examples