]> gitweb.factorcode.org Git - factor.git/commitdiff
hash-sets: fix help-lint warnings.
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 8 Mar 2013 14:15:27 +0000 (06:15 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 8 Mar 2013 14:15:27 +0000 (06:15 -0800)
core/hash-sets/hash-sets-docs.factor
core/hash-sets/hash-sets.factor

index cee49ef930cba41e129ef5b71c09d54f48064ac6..7b8df4d23fff11fc01f5d682583f2c56426e39e9 100644 (file)
@@ -2,7 +2,7 @@ USING: help.markup help.syntax math sequences ;
 IN: hash-sets
 
 ARTICLE: "hash-sets" "Hash sets"
-"The " { $vocab-link "hash-sets" } " vocabulary implements hashtable-backed sets. Hash sets form a class:"
+"The " { $vocab-link "hash-sets" } " vocabulary implements hashtable-like sets. Hash sets form a class:"
 { $subsections hash-set }
 "Constructing new hash sets:"
 { $subsections <hash-set> >hash-set }
@@ -11,7 +11,7 @@ ARTICLE: "hash-sets" "Hash sets"
 ABOUT: "hash-sets"
 
 HELP: hash-set
-{ $class-description "The class of hashtable-based sets. These implement the " { $link "sets" } "." } ;
+{ $class-description "The class of hashtable-like sets. These implement the " { $link "sets" } "." } ;
 
 HELP: <hash-set>
 { $values { "capacity" number } { "hash-set" hash-set } }
index 971d4baf6fcf7430bfd1cf6922658816a76f0cc2..1d2f0ec7d642f545682a5bc8cd93e9fa5e8408de 100644 (file)
@@ -83,16 +83,16 @@ TUPLE: hash-set
 
 PRIVATE>
 
-: <hash-set> ( n -- hash )
+: <hash-set> ( capacity -- hash-set )
     hash-set new [ reset-hash ] keep ; inline
 
-M: hash-set in? ( key hash -- ? )
+M: hash-set in?
      key@ 2nip ;
 
-M: hash-set clear-set ( hash -- )
+M: hash-set clear-set
     [ init-hash ] [ array>> [ drop ((empty)) ] map! drop ] bi ;
 
-M: hash-set delete ( key hash -- )
+M: hash-set delete
     [ nip ] [ key@ ] 2bi [
         [ ((tombstone)) ] 2dip set-nth-item
         hash-deleted+
@@ -100,13 +100,13 @@ M: hash-set delete ( key hash -- )
         3drop
     ] if ;
 
-M: hash-set cardinality ( hash -- n )
+M: hash-set cardinality
     [ count>> ] [ deleted>> ] bi - ; inline
 
-: rehash ( hash -- )
+: rehash ( hash-set -- )
     [ members ] [ clear-set ] [ (rehash) ] tri ;
 
-M: hash-set adjoin ( key hash -- )
+M: hash-set adjoin ( key hash-set -- )
     dup ?grow-hash (adjoin) ;
 
 <PRIVATE