Skip to content

Commit 0796db5

Browse files
authored
fixed some typos (#11012)
1 parent 3581244 commit 0796db5

11 files changed

Lines changed: 20 additions & 20 deletions

File tree

etc/c/curl.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1994,7 +1994,7 @@ extern (C) CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info,...);
19941994
* Creates a new curl session handle with the same options set for the handle
19951995
* passed in. Duplicating a handle could only be a matter of cloning data and
19961996
* options, internal state info and things like persistant connections cannot
1997-
* be transfered. It is useful in multithreaded applications when you can run
1997+
* be transferred. It is useful in multithreaded applications when you can run
19981998
* curl_easy_duphandle() for each new thread to avoid a series of identical
19991999
* curl_easy_setopt() invokes in every thread.
20002000
*/

phobos/sys/traits.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2652,7 +2652,7 @@ template isEqual(alias lhs)
26522652
static assert(!__traits(compiles, __traits(identifier, arr[0])));
26532653

26542654
// Similarly, once an enum member from the AliasSeq is assigned to a
2655-
// variable, __traits(identifer, ...) operates on the variable, not the
2655+
// variable, __traits(identifier, ...) operates on the variable, not the
26562656
// symbol from the AliasSeq or the value of the variable.
26572657
auto var = uniqueMembers[0];
26582658
static assert(__traits(identifier, var) == "var");

std/algorithm/setops.d

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ array of the occurrences and then selecting its top items, and also
636636
requires less memory (`largestPartialIntersection` builds its
637637
result directly in `tgt` and requires no extra memory).
638638
639-
If at least one of the ranges is a multiset, then all occurences
639+
If at least one of the ranges is a multiset, then all occurrences
640640
of a duplicate element are taken into account. The result is
641641
equivalent to merging all ranges and picking the most frequent
642642
`tgt.length` elements.
@@ -714,7 +714,7 @@ import std.algorithm.sorting : SortOutput; // FIXME
714714
Similar to `largestPartialIntersection`, but associates a weight
715715
with each distinct element in the intersection.
716716
717-
If at least one of the ranges is a multiset, then all occurences
717+
If at least one of the ranges is a multiset, then all occurrences
718718
of a duplicate element are taken into account. The result
719719
is equivalent to merging all input ranges and picking the highest
720720
`tgt.length`, weight-based ranking elements.
@@ -1063,7 +1063,7 @@ ranges must have a common type.
10631063
10641064
10651065
In the case of multisets, considering that element `a` appears `x`
1066-
times in `r1` and `y` times and `r2`, the number of occurences
1066+
times in `r1` and `y` times and `r2`, the number of occurrences
10671067
of `a` in the resulting range is going to be `x-y` if x > y or 0 otherwise.
10681068
10691069
Params:
@@ -1188,8 +1188,8 @@ $(REF_ALTTEXT input ranges, isInputRange, std,range,primitives)
11881188
types of the ranges must have a common type.
11891189
11901190
In the case of multisets, the range with the minimum number of
1191-
occurences of a given element, propagates the number of
1192-
occurences of this element to the resulting range.
1191+
occurrences of a given element, propagates the number of
1192+
occurrences of this element to the resulting range.
11931193
11941194
Params:
11951195
less = Predicate the given ranges are sorted by.
@@ -1359,9 +1359,9 @@ ranges must have a common type.
13591359
13601360
If both ranges are sets (without duplicated elements), the resulting
13611361
range is going to be a set. If at least one of the ranges is a multiset,
1362-
the number of occurences of an element `x` in the resulting range is `abs(a-b)`
1363-
where `a` is the number of occurences of `x` in `r1`, `b` is the number of
1364-
occurences of `x` in `r2`, and `abs` is the absolute value.
1362+
the number of occurrences of an element `x` in the resulting range is `abs(a-b)`
1363+
where `a` is the number of occurrences of `x` in `r1`, `b` is the number of
1364+
occurrences of `x` in `r2`, and `abs` is the absolute value.
13651365
13661366
If both arguments are ranges of L-values of the same type then
13671367
`SetSymmetricDifference` will also be a range of L-values of

std/container/dlist.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ Complexity: $(BIGOH r.walkLength)
719719
alias stableLinearRemove = linearRemove;
720720

721721
/**
722-
Removes the first occurence of an element from the list in linear time.
722+
Removes the first occurrence of an element from the list in linear time.
723723
724724
Returns: True if the element existed and was successfully removed, false otherwise.
725725

std/container/slist.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ Complexity: $(BIGOH n)
628628
alias stableLinearRemove = linearRemove;
629629

630630
/**
631-
Removes the first occurence of an element from the list in linear time.
631+
Removes the first occurrence of an element from the list in linear time.
632632
633633
Returns: True if the element existed and was successfully removed, false otherwise.
634634

std/exception.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,12 +1059,12 @@ false negatives:
10591059
10601060
`doesPointTo` will return `true` if it is absolutely certain
10611061
`source` points to `target`. It may produce false negatives, but never
1062-
false positives. This function should be prefered when trying to validate
1062+
false positives. This function should be preferred when trying to validate
10631063
input data.
10641064
10651065
`mayPointTo` will return `false` if it is absolutely certain
10661066
`source` does not point to `target`. It may produce false positives, but never
1067-
false negatives. This function should be prefered for defensively choosing a
1067+
false negatives. This function should be preferred for defensively choosing a
10681068
code path.
10691069
10701070
Note: Evaluating $(D doesPointTo(x, x)) checks whether `x` has
@@ -1956,7 +1956,7 @@ Params:
19561956
`Throwable` of type `E`. The handler must accept arguments of
19571957
the form $(D E, ref IRange) and its return value is used as the primitive's
19581958
return value whenever `E` is thrown. For `opIndex`, the handler can
1959-
optionally recieve a third argument; the index that caused the exception.
1959+
optionally receive a third argument; the index that caused the exception.
19601960
input = The range to _handle.
19611961
19621962
Returns: A wrapper `struct` that preserves the range interface of `input`.

std/file.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2973,7 +2973,7 @@ Params:
29732973
29742974
Throws:
29752975
$(LREF FileException) on POSIX or $(LREF WindowsException) on Windows
2976-
if an error occured.
2976+
if an error occurred.
29772977
*/
29782978
void mkdir(R)(R pathname)
29792979
if (isSomeFiniteCharInputRange!R && !isConvertibleToString!R)

std/range/primitives.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ $(BOOKTABLE ,
400400
401401
Tip: `put` should $(I not) be used "UFCS-style", e.g. `r.put(e)`.
402402
Doing this may call `R.put` directly, by-passing any transformation
403-
feature provided by `Range.put`. $(D put(r, e)) is prefered.
403+
feature provided by `Range.put`. $(D put(r, e)) is preferred.
404404
+/
405405
void put(R, E)(ref R r, E e)
406406
{

std/regex/internal/parser.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ struct CodeGen
179179
uint counterDepth = 0; // current depth of nested counted repetitions
180180
CodepointSet[] charsets; // sets for char classes
181181
const(CharMatcher)[] matchers; // matchers for char classes
182-
uint[] backrefed; // bitarray for groups refered by backref
182+
uint[] backrefed; // bitarray for groups referred by backref
183183
uint ngroup; // final number of groups (of all patterns)
184184

185185
void start(uint length)

std/regex/internal/thompson.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ final:
10551055
}
10561056

10571057
/+
1058-
handle succesful threads
1058+
handle successful threads
10591059
+/
10601060
void finish(const(Thread!DataIndex)* t, Group!DataIndex[] matches, int code)
10611061
{

0 commit comments

Comments
 (0)