From 317db2826e152a104e31bb1a1f69cb0b24ae4c83 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Thu, 21 Mar 2013 21:23:17 -0700 Subject: [PATCH] sets: add proper spacing to docs. --- core/sets/sets-docs.factor | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/core/sets/sets-docs.factor b/core/sets/sets-docs.factor index 2f45eb32df..2ebf4d0300 100644 --- a/core/sets/sets-docs.factor +++ b/core/sets/sets-docs.factor @@ -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 }" } } ;