docs: typos: occurence -> occurrence

Didn't fix the one at extra/webapps/fjsc/www/termlib/readme.txt
because it's from upstream
char-rename
Jon Harper 2016-10-28 12:11:43 +02:00 committed by John Benediktsson
parent 86b5efb9eb
commit 6bdb62d142
3 changed files with 6 additions and 6 deletions

View File

@ -22,7 +22,7 @@ HELP: search-from
{ "i/f" "the index of first match or " { $link f } } { "i/f" "the index of first match or " { $link f } }
} }
{ $description "Performs an attempt to find the first " { $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 " " starting from " { $snippet "from" } " using "
"Boyer-Moore search algorithm. Output is the index " "Boyer-Moore search algorithm. Output is the index "
"if the attempt was succeessful and " { $link f } "if the attempt was succeessful and " { $link f }

View File

@ -257,7 +257,7 @@ LAZY: <*> ( parser -- parser )
dup <*> <&:> { } succeed <|> ; dup <*> <&:> { } succeed <|> ;
: <+> ( parser -- parser ) : <+> ( 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. ! parser.
dup <*> <&:> ; dup <*> <&:> ;

View File

@ -192,7 +192,7 @@ HELP: unsurround
HELP: start-all HELP: start-all
{ $values { $values
{ "subseq" sequence } { "seq" sequence } { "indices" sequence } } { "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 { $examples
{ $example "USING: prettyprint sequences.extras ; \"ABA\" \"ABABA\" start-all ." { $example "USING: prettyprint sequences.extras ; \"ABA\" \"ABABA\" start-all ."
"{ 0 }" "{ 0 }"
@ -205,7 +205,7 @@ HELP: start-all
HELP: start-all* HELP: start-all*
{ $values { $values
{ "subseq" sequence } { "seq" sequence } { "indices" sequence } } { "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 { $examples
{ $example "USING: prettyprint sequences.extras ; \"ABA\" \"ABABA\" start-all* ." { $example "USING: prettyprint sequences.extras ; \"ABA\" \"ABABA\" start-all* ."
"{ 0 2 }" "{ 0 2 }"
@ -214,7 +214,7 @@ HELP: start-all*
HELP: count-subseq HELP: count-subseq
{ $values { $values
{ "subseq" sequence } { "seq" sequence } { "n" integer } } { "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 { $examples
{ $example "USING: prettyprint sequences.extras ; \"ABA\" \"ABABA\" count-subseq ." { $example "USING: prettyprint sequences.extras ; \"ABA\" \"ABABA\" count-subseq ."
"1" "1"
@ -224,7 +224,7 @@ HELP: count-subseq
HELP: count-subseq* HELP: count-subseq*
{ $values { $values
{ "subseq" sequence } { "seq" sequence } { "n" integer } } { "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 { $examples
{ $example "USING: prettyprint sequences.extras ; \"ABA\" \"ABABA\" count-subseq* ." { $example "USING: prettyprint sequences.extras ; \"ABA\" \"ABABA\" count-subseq* ."
"2" "2"