From: Jon Harper Date: Fri, 28 Oct 2016 10:11:43 +0000 (+0200) Subject: docs: typos: occurence -> occurrence X-Git-Tag: unmaintained~552 X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=commitdiff_plain;h=6bdb62d1420664aac33498115f63dcc34b8a6651 docs: typos: occurence -> occurrence Didn't fix the one at extra/webapps/fjsc/www/termlib/readme.txt because it's from upstream --- diff --git a/extra/boyer-moore/boyer-moore-docs.factor b/extra/boyer-moore/boyer-moore-docs.factor index d87f431ee7..2b23e72fc6 100644 --- a/extra/boyer-moore/boyer-moore-docs.factor +++ b/extra/boyer-moore/boyer-moore-docs.factor @@ -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 } diff --git a/extra/parser-combinators/parser-combinators.factor b/extra/parser-combinators/parser-combinators.factor index d44cb530f3..9628eaf167 100644 --- a/extra/parser-combinators/parser-combinators.factor +++ b/extra/parser-combinators/parser-combinators.factor @@ -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 <*> <&:> ; diff --git a/extra/sequences/extras/extras-docs.factor b/extra/sequences/extras/extras-docs.factor index 745cca1c5d..57a534b05a 100644 --- a/extra/sequences/extras/extras-docs.factor +++ b/extra/sequences/extras/extras-docs.factor @@ -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"