]> gitweb.factorcode.org Git - factor.git/commitdiff
sets: add proper spacing to docs.
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 22 Mar 2013 04:23:17 +0000 (21:23 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 22 Mar 2013 04:23:17 +0000 (21:23 -0700)
core/sets/sets-docs.factor

index 2f45eb32df9eb158acfad5953eca83bb16a26e0a..2ebf4d03001878a481f1d7486dfe49f7bce95f8b 100644 (file)
@@ -136,8 +136,7 @@ HELP: all-unique?
 
 HELP: diff
 { $values { "set1" set } { "set2" set } { "set" set } }
-{ $description "Outputs a set consisting of elements present in " { $snippet "set1" } " but not " { $snippet "set2" } ", comparing elements for equality." 
-"This word has a default definition which works for all sets, but set implementations may override the default for efficiency."
+{ $description "Outputs a set consisting of elements present in " { $snippet "set1" } " but not " { $snippet "set2" } ", comparing elements for equality." $nl "This word has a default definition which works for all sets, but set implementations may override the default for efficiency."
 } { $examples
     { $example "USING: sets prettyprint ;" "{ 1 2 3 } { 2 3 4 } diff ." "{ 1 }" }
 } ;
@@ -156,8 +155,7 @@ HELP: intersection
 
 HELP: union
 { $values { "set1" set } { "set2" set } { "set" set } }
-{ $description "Outputs a set consisting of elements present in either " { $snippet "set1" } " or " { $snippet "set2" } " which does not contain duplicate values."
-"This word has a default definition which works for all sets, but set implementations may override the default for efficiency." }
+{ $description "Outputs a set consisting of elements present in either " { $snippet "set1" } " or " { $snippet "set2" } " which does not contain duplicate values." $nl "This word has a default definition which works for all sets, but set implementations may override the default for efficiency." }
 { $examples
     { $example "USING: sets prettyprint ;" "{ 1 2 3 } { 2 3 4 } union ." "{ 1 2 3 4 }" }
 } ;
@@ -196,8 +194,7 @@ HELP: gather
 
 HELP: set-like
 { $values { "set" set } { "exemplar" set } { "set'" set } }
-{ $description "If the conversion is defined for the exemplar, converts the set into a set of the exemplar's class. This is not guaranteed to create a new set, for example if the input set and exemplar are of the same class." $nl
-"Set implementations may optionally implement a method on this generic word. The default implementation returns its input set." }
+{ $description "If the conversion is defined for the exemplar, converts the set into a set of the exemplar's class. This is not guaranteed to create a new set, for example if the input set and exemplar are of the same class." $nl "Set implementations may optionally implement a method on this generic word. The default implementation returns its input set." }
 { $examples
     { $example "USING: sets prettyprint ;" "{ 1 2 3 } HS{ } set-like ." "HS{ 1 2 3 }" }
 } ;