docs: typos: occurence -> occurrence
Didn't fix the one at extra/webapps/fjsc/www/termlib/readme.txt because it's from upstreamchar-rename
parent
86b5efb9eb
commit
6bdb62d142
|
@ -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 }
|
||||
|
|
|
@ -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 <*> <&:> ;
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue