Skip to content

Commit

Permalink
Found more inconsistencies with spelling of occurrence
Browse files Browse the repository at this point in the history
  • Loading branch information
Cody Moorhouse committed Mar 11, 2016
1 parent 12dc84c commit 6abd234
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions docs/reference/Core/Core/Sequence/index.html
Expand Up @@ -806,7 +806,7 @@ <h1>Io Reference</h1>
</b>
<p>
<div class=slotDescription>
Returns a number with the nth occurence of aSequence.
Returns a number with the nth occurrence of aSequence.
</div>
<a name="Sequence-findRegex"></a><b>
findRegex(aRegexOrString, [startIndex])
Expand All @@ -825,7 +825,7 @@ <h1>Io Reference</h1>
Returns a number with the first occurrence of aSequence in
the receiver after the startIndex. If no startIndex is specified,
the search starts at index 0.
nil is returned if no occurences are found.
nil is returned if no occurrences are found.
</div>
<a name="Sequence-findSeqs"></a><b>
findSeqs(listOfSequences, optionalStartIndex)
Expand All @@ -837,7 +837,7 @@ <h1>Io Reference</h1>
in the receiver after the startIndex, and a \"match\" slot, which
contains a reference to the matching sequence from listOfSequences.
If no startIndex is specified, the search starts at index 0.
nil is returned if no occurences are found.
nil is returned if no occurrences are found.
</div>
<a name="Sequence-floor"></a><b>
floor
Expand Down
12 changes: 6 additions & 6 deletions libs/iovm/source/IoSeq_immutable.c
Expand Up @@ -478,7 +478,7 @@ IO_METHOD(IoSeq, findSeqs)
in the receiver after the startIndex, and a \"match\" slot, which
contains a reference to the matching sequence from listOfSequences.
If no startIndex is specified, the search starts at index 0.
nil is returned if no occurences are found.
nil is returned if no occurrences are found.
*/

IoList *others = IoMessage_locals_listArgAt_(m, locals, 0);
Expand Down Expand Up @@ -531,7 +531,7 @@ IO_METHOD(IoSeq, findSeq)
Returns a number with the first occurrence of aSequence in
the receiver after the startIndex. If no startIndex is specified,
the search starts at index 0.
nil is returned if no occurences are found.
nil is returned if no occurrences are found.
*/

IoSeq *otherSequence = IoMessage_locals_seqArgAt_(m, locals, 0);
Expand Down Expand Up @@ -1159,7 +1159,7 @@ IO_METHOD(IoSeq, asIoPath)
return IoSeq_newSymbolWithUArray_copy_(IOSTATE, UArray_asUnixPath(IoSeq_rawUArray(self)), 0);
}

// occurences
// occurrences

IO_METHOD(IoSeq, beforeSeq)
{
Expand Down Expand Up @@ -1250,9 +1250,9 @@ IO_METHOD(IoSeq, asCapitalized)
}
}

IO_METHOD(IoSeq, occurencesOfSeq)
IO_METHOD(IoSeq, occurrencesOfSeq)
{
/*doc Sequence occurencesOfSeq(aSeq)
/*doc Sequence occurrencesOfSeq(aSeq)
Returns count of aSeq in the receiver.
*/

Expand Down Expand Up @@ -1997,7 +1997,7 @@ void IoSeq_addImmutableMethods(IoSeq *self)
{"asUppercase", IoSeq_asUppercase},
{"asLowercase", IoSeq_asLowercase},
{"with", IoSeq_with},
{"occurencesOfSeq", IoSeq_occurencesOfSeq},
{"occurrencesOfSeq", IoSeq_occurrencesOfSeq},
{"interpolate", IoSeq_interpolate},
{"distanceTo", IoSeq_distanceTo},

Expand Down
2 changes: 1 addition & 1 deletion libs/iovm/source/IoSeq_immutable.h
Expand Up @@ -98,7 +98,7 @@ IOVM_API IO_METHOD(IoSeq, asIoPath);
IOVM_API IO_METHOD(IoSeq, beforeSeq);
IOVM_API IO_METHOD(IoSeq, afterSeq);

IOVM_API IO_METHOD(IoSeq, occurencesOfSeq);
IOVM_API IO_METHOD(IoSeq, occurrencesOfSeq);

// encoding

Expand Down
12 changes: 6 additions & 6 deletions libs/iovm/source/IoSeq_mutable.c
Expand Up @@ -336,7 +336,7 @@ IO_METHOD(IoSeq, preallocateToSize)
IO_METHOD(IoSeq, replaceSeq)
{
/*doc Sequence replaceSeq(aSequence, anotherSequence)
Returns a new Sequence with all occurences of aSequence
Returns a new Sequence with all occurrences of aSequence
replaced with anotherSequence in the receiver. Returns self.
*/

Expand All @@ -350,7 +350,7 @@ IO_METHOD(IoSeq, replaceSeq)
IO_METHOD(IoSeq, removeSeq)
{
/*doc Sequence removeSeq(aSequence)
Removes occurences of aSequence from the receiver.
Removes occurrences of aSequence from the receiver.
*/

IoSeq *subSeq = IoMessage_locals_seqArgAt_(m, locals, 0);
Expand All @@ -363,7 +363,7 @@ IO_METHOD(IoSeq, removeSeq)
IO_METHOD(IoSeq, replaceFirstSeq)
{
/*doc Sequence replaceFirstSeq(aSequence, anotherSequence, optionalStartIndex)
Returns a new Sequence with the first occurence of aSequence
Returns a new Sequence with the first occurrence of aSequence
replaced with anotherSequence in the receiver. If optionalStartIndex is
provided, the search for aSequence begins at that index. Returns self.
*/
Expand Down Expand Up @@ -458,7 +458,7 @@ IO_METHOD(IoSeq, clipAfterSeq)
{
/*doc Sequence clipAfterSeq(aSequence)
Removes the contents of the receiver after the end of
the first occurence of aSequence. Returns true if anything was
the first occurrence of aSequence. Returns true if anything was
removed, or false otherwise.
*/

Expand All @@ -473,7 +473,7 @@ IO_METHOD(IoSeq, clipBeforeEndOfSeq)
{
/*doc Sequence clipBeforeEndOfSeq(aSequence)
Removes the contents of the receiver before the end of
the first occurence of aSequence. Returns true if anything was
the first occurrence of aSequence. Returns true if anything was
removed, or false otherwise.
*/

Expand All @@ -487,7 +487,7 @@ IO_METHOD(IoSeq, clipAfterStartOfSeq)
{
/*doc Sequence clipAfterStartOfSeq(aSequence)
Removes the contents of the receiver after the beginning of
the first occurence of aSequence. Returns true if anything was
the first occurrence of aSequence. Returns true if anything was
removed, or false otherwise.
*/

Expand Down

0 comments on commit 6abd234

Please sign in to comment.