]> gitweb.factorcode.org Git - factor.git/commitdiff
Fix some things broken by hashtable capacity changes.
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 15 Jul 2015 04:45:39 +0000 (21:45 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 15 Jul 2015 04:45:39 +0000 (21:45 -0700)
core/hashtables/hashtables-docs.factor
core/words/words-docs.factor
extra/html/parser/printer/printer-tests.factor
extra/yaml/yaml-docs.factor

index 5ccf6f3829e4adc2fdf24b77b859171aaf87d135..e79d405f124d3ed4c8416e9834d0baac910a3466 100644 (file)
@@ -1,5 +1,5 @@
-USING: assocs hashtables.private help.markup help.syntax kernel
-sequences ;
+USING: arrays assocs hashtables.private help.markup help.syntax
+kernel sequences ;
 IN: hashtables
 
 ARTICLE: "hashtables.private" "Hashtable implementation details"
@@ -79,7 +79,7 @@ HELP: new-key@
 { $description "Searches the hashtable for the key using a quadratic probing strategy. If the key is not present in the hashtable, outputs the index where it should be stored." } ;
 
 HELP: set-nth-pair
-{ $values { "value" "the second element of the pair" } { "key" "the first element of the pair" } { "seq" sequence } { "n" "an index in the sequence" } }
+{ $values { "value" "the second element of the pair" } { "key" "the first element of the pair" } { "array" array } { "n" "an index in the sequence" } }
 { $description "Stores a pair of values into the elements with index " { $snippet "n" } " and " { $snippet "n+1" } ", respectively." }
 { $warning "This word is in the " { $vocab-link "hashtables.private" } " vocabulary because it does not perform bounds checks." }
 { $side-effects "seq" } ;
index 803d1694c7398ab27991977266be199031fd5fcc..4226e25a4014982936e237be34ec6a25ca09cba0 100644 (file)
@@ -357,7 +357,7 @@ HELP: subwords
   { $example
     "USING: math.functions prettyprint words ;"
     "\\ sin subwords ."
-    "{ M\\ object sin M\\ float sin M\\ complex sin M\\ real sin }"
+    "{ M\\ object sin M\\ complex sin M\\ real sin M\\ float sin }"
   }
 }
 { $notes "Outputs " { $link f } " if the word isn't generic." } ;
index c0b59db408500bdedabd69142b79fb6e2d6b9a4f..3c91e9765de7f9a6ba2fb870896e11343be98a82 100644 (file)
@@ -13,7 +13,7 @@ IN: html.parser.printer.tests
 ] unit-test
 
 {
-    " rel='nofollow' href='http://www.google.com'"
+    " href='http://www.google.com' rel='nofollow'"
 } [
     H{ { "href" "http://www.google.com" } { "rel" "nofollow" } }
         [ print-attributes ] with-string-writer
index a96f516787ce073a3651387fb60ffae6fbb31c9f..6e73136b321d21b2ea344d9af4b242ce8c828619 100644 (file)
@@ -164,7 +164,7 @@ foo: 1
   <<:
     baz: 3
 " yaml> ."""
-"""H{ { "bar" 2 } { "foo" 1 } { "baz" 3 } }""" }
+"""H{ { "baz" 3 } { "foo" 1 } { "bar" 2 } }""" }
 { $heading "!!value" }
 "See " { $url "http://yaml.org/type/value.html" } $nl
 { $example """USING: yaml prettyprint ;