math.combinators: fix help-lint warnings I introduced...
							parent
							
								
									05f6304087
								
							
						
					
					
						commit
						66b2b3c044
					
				| 
						 | 
				
			
			@ -2,16 +2,16 @@ USING: help.markup help.syntax math ;
 | 
			
		|||
IN: math.combinators
 | 
			
		||||
 | 
			
		||||
HELP: when-negative
 | 
			
		||||
{ $values { "n" real } { "true" "the first quotation of an " { $link if-negative } } }
 | 
			
		||||
{ $description "When " { $snippet "n" } " is negative, calls the " { $snippet "true" } " quotation with " { $snippet "n" } "." }
 | 
			
		||||
{ $values { "n" real } { "quot" "the first quotation of an " { $link if-negative } } }
 | 
			
		||||
{ $description "When " { $snippet "n" } " is negative, calls the quotation with " { $snippet "n" } "." }
 | 
			
		||||
{ $examples
 | 
			
		||||
    { $example "USING: math math.combinators prettyprint ;" "-3 [ 1 + ] when-negative ." "-2" }
 | 
			
		||||
    { $example "USING: math math.combinators prettyprint ;" "3.5 [ 1 + ] when-negative ." "3.5" }
 | 
			
		||||
} ;
 | 
			
		||||
 | 
			
		||||
HELP: when-positive
 | 
			
		||||
{ $values { "n" real } { "true" "the first quotation of an " { $link if-positive } } }
 | 
			
		||||
{ $description "When " { $snippet "n" } " is positive, calls the " { $snippet "true" } " quotation with " { $snippet "n" } "." }
 | 
			
		||||
{ $values { "n" real } { "quot" "the first quotation of an " { $link if-positive } } }
 | 
			
		||||
{ $description "When " { $snippet "n" } " is positive, calls the quotation with " { $snippet "n" } "." }
 | 
			
		||||
{ $examples
 | 
			
		||||
    { $example "USING: math math.combinators prettyprint ;" "1.5 [ 1 + ] when-positive ." "2.5" }
 | 
			
		||||
    { $example "USING: math math.combinators prettyprint ;" "-1 [ 1 + ] when-positive ." "-1" }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue