]> gitweb.factorcode.org Git - factor.git/commitdiff
docs: typos: occurence -> occurrence
authorJon Harper <jon.harper87@gmail.com>
Fri, 28 Oct 2016 10:11:43 +0000 (12:11 +0200)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 28 Oct 2016 16:32:51 +0000 (09:32 -0700)
Didn't fix the one at extra/webapps/fjsc/www/termlib/readme.txt
because it's from upstream

extra/boyer-moore/boyer-moore-docs.factor
extra/parser-combinators/parser-combinators.factor
extra/sequences/extras/extras-docs.factor

index d87f431ee7fa14c70e3ccf10317b1b66dc818784..2b23e72fc6f470ce02afdeb10768e9ab3d09de77 100644 (file)
@@ -22,7 +22,7 @@ HELP: search-from
   { "i/f" "the index of first match or " { $link f }  }
 }
 { $description "Performs an attempt to find the first "
-  "occurence of pattern in " { $snippet "seq" }
+  "occurrence of pattern in " { $snippet "seq" }
   " starting from " { $snippet "from" } " using "
   "Boyer-Moore search algorithm. Output is the index "
   "if the attempt was  succeessful and " { $link f }
index d44cb530f3f85c94338fc8abbcb93c6d76232a00..9628eaf167e606d27f2d0388a7f8f8af870a933a 100644 (file)
@@ -257,7 +257,7 @@ LAZY: <*> ( parser -- parser )
     dup <*> <&:> { } succeed <|> ;
 
 : <+> ( parser -- parser )
-    ! Return a parser that accepts one or more occurences of the original
+    ! Return a parser that accepts one or more occurrences of the original
     ! parser.
     dup <*> <&:> ;
 
index 745cca1c5dfd6e61c74ce0023660f34d622293d3..57a534b05ae7ed613ee7b8ee453af82e39a1be20 100644 (file)
@@ -192,7 +192,7 @@ HELP: unsurround
 HELP: start-all
 { $values
      { "subseq" sequence } { "seq" sequence } { "indices" sequence } }
-{ $description "Outputs the starting indices of the non-overlapping occurences of " { $snippet "subseq" } " in " { $snippet "seq" } "." }
+{ $description "Outputs the starting indices of the non-overlapping occurrences of " { $snippet "subseq" } " in " { $snippet "seq" } "." }
 { $examples
     { $example "USING: prettyprint sequences.extras ; \"ABA\" \"ABABA\" start-all ."
                "{ 0 }"
@@ -205,7 +205,7 @@ HELP: start-all
 HELP: start-all*
 { $values
     { "subseq" sequence } { "seq" sequence } { "indices" sequence } }
-{ $description "Outputs the starting indices of the possibly overlapping occurences of " { $snippet "subseq" } " in " { $snippet "seq" } "." }
+{ $description "Outputs the starting indices of the possibly overlapping occurrences of " { $snippet "subseq" } " in " { $snippet "seq" } "." }
 { $examples
     { $example "USING: prettyprint sequences.extras ; \"ABA\" \"ABABA\" start-all* ."
                "{ 0 2 }"
@@ -214,7 +214,7 @@ HELP: start-all*
 HELP: count-subseq
 { $values
     { "subseq" sequence } { "seq" sequence } { "n" integer } }
-{ $description "Outputs the number of non-overlapping occurences of " { $snippet "subseq" } " in " { $snippet "seq" } "." }
+{ $description "Outputs the number of non-overlapping occurrences of " { $snippet "subseq" } " in " { $snippet "seq" } "." }
 { $examples
     { $example "USING: prettyprint sequences.extras ; \"ABA\" \"ABABA\" count-subseq ."
                "1"
@@ -224,7 +224,7 @@ HELP: count-subseq
 HELP: count-subseq*
 { $values
     { "subseq" sequence } { "seq" sequence } { "n" integer } }
-{ $description "Outputs the number of possibly overlapping occurences of " { $snippet "subseq" } " in " { $snippet "seq" } "." }
+{ $description "Outputs the number of possibly overlapping occurrences of " { $snippet "subseq" } " in " { $snippet "seq" } "." }
 { $examples
     { $example "USING: prettyprint sequences.extras ; \"ABA\" \"ABABA\" count-subseq* ."
                "2"