Skip to content
Merged

fix typo #11013

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion std/algorithm/comparison.d
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ Returns:
`lower` if `val` is less than `lower`, `upper` if `val` is greater than
`upper`, and `val` in all other cases. Comparisons are made
correctly (using $(REF lessThan, std,functional) and the return value
is converted to the return type using the standard integer coversion rules
is converted to the return type using the standard integer conversion rules
$(REF greaterThan, std,functional)) even if the signedness of `T1`, `T2`,
and `T3` are different.
*/
Expand Down
2 changes: 1 addition & 1 deletion std/bitmanip.d
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ public:
This constructor is the inverse of $(LREF opCast).

Params:
v = Source array. `v.length` must be a multple of `size_t.sizeof`.
v = Source array. `v.length` must be a multiple of `size_t.sizeof`.
numbits = Number of bits to be mapped from the source array, i.e.
length of the created `BitArray`.
*/
Expand Down
2 changes: 1 addition & 1 deletion std/checkedint.d
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,7 @@ static:
and the destination type is `Dst`.

Params:
src = Souce operand
src = Source operand

Returns:
Nominally the result is the desired value of the cast operation,
Expand Down
4 changes: 2 additions & 2 deletions std/container/dlist.d
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ Complexity: $(BIGOH 1)
alias stableRemove = remove;

/**
Removes first element of `r`, wich must be a range obtained originally
Removes first element of `r`, which must be a range obtained originally
from this container, from both DList instance and range `r`.

Compexity: $(BIGOH 1)
Expand All @@ -677,7 +677,7 @@ Compexity: $(BIGOH 1)
}

/**
Removes last element of `r`, wich must be a range obtained originally
Removes last element of `r`, which must be a range obtained originally
from this container, from both DList instance and range `r`.

Compexity: $(BIGOH 1)
Expand Down
2 changes: 1 addition & 1 deletion std/container/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ rbTree.insert(5); // null pointer dereference
---

Using an uninitialized struct-based container will work, because the struct
intializes itself upon use; however, up to this point the container will not
initializes itself upon use; however, up to this point the container will not
have an identity and assignment does not create two references to the same
data.

Expand Down
2 changes: 1 addition & 1 deletion std/format/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ $(BOOKTABLE ,
$(TR $(MULTIROW_CELL 2, $(I Enum))
$(TD $(B 's'))
$(TD The name of the value. If the name is not available, the base value
is used, preceeded by a cast.)
is used, preceded by a cast.)
)
$(TR $(TD All, but $(B 's'))
$(TD Enums can be formatted with all format characters that can be used
Expand Down
2 changes: 1 addition & 1 deletion std/functional.d
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,7 @@ unittest
----

Params:
fun = the call-able to memozie
fun = the call-able to memoize
maxSize = The maximum size of the GC buffer to hold the return values
Returns:
A new function which calls `fun` and caches its return values.
Expand Down
4 changes: 2 additions & 2 deletions std/math/operations.d
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ if (isFloatingPoint!(X))
reference = Reference value.
maxRelDiff = Maximum allowable difference relative to `reference`.
Setting to 0.0 disables this check. Defaults to `1e-2`.
maxAbsDiff = Maximum absolute difference. This is mainly usefull
maxAbsDiff = Maximum absolute difference. This is mainly useful
for comparing values to zero. Setting to 0.0 disables this check.
Defaults to `1e-5`.

Expand Down Expand Up @@ -1210,7 +1210,7 @@ deprecated @safe pure nothrow unittest
Setting to 0.0 disables this check. Default depends on the type of
`lhs` and `rhs`: It is approximately half the number of decimal digits of
precision of the smaller type.
maxAbsDiff = Maximum absolute difference. This is mainly usefull
maxAbsDiff = Maximum absolute difference. This is mainly useful
for comparing values to zero. Setting to 0.0 disables this check.
Defaults to `0.0`.

Expand Down
2 changes: 1 addition & 1 deletion std/path.d
Original file line number Diff line number Diff line change
Expand Up @@ -2797,7 +2797,7 @@ string absolutePath(return scope const string path, lazy string base = getcwd())
assertThrown(absolutePath("bar", "foo"));
}

// Ensure that we can call absolute path with scope paramaters
// Ensure that we can call absolute path with scope parameters
@safe unittest
{
string testAbsPath(scope const string path, scope const string base) {
Expand Down
2 changes: 1 addition & 1 deletion std/regex/internal/ir.d
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ enum IR:uint {
GroupEnd = 0b1_01101_00, //end of a group (x) (groupIndex+groupPinning(1bit))
Option = 0b1_01110_00, //start of an option within an alternation x | y (length)
GotoEndOr = 0b1_01111_00, //end of an option (length of the rest)
Bof = 0b1_10000_00, //begining of "file" (string) ^
Bof = 0b1_10000_00, //beginning of "file" (string) ^
Eof = 0b1_10001_00, //end of "file" (string) $
//... any additional atoms here

Expand Down
6 changes: 3 additions & 3 deletions std/traits.d
Original file line number Diff line number Diff line change
Expand Up @@ -5541,7 +5541,7 @@ if (is(F == function) && is(G == function) ||
*/
template checkSTC()
{
// Note the order of arguments. The convertion order Lwr -> Upr is
// Note the order of arguments. The conversion order Lwr -> Upr is
// correct since Upr should be semantically 'narrower' than Lwr.
enum ok = isStorageClassImplicitlyConvertible!(Lwr, Upr);
}
Expand All @@ -5566,7 +5566,7 @@ if (is(F == function) && is(G == function) ||
(!!(uprAtts & safety ) >= !!(lwrAtts & safety )) ;
}
/*
* Check for return type: usual implicit convertion.
* Check for return type: usual implicit conversion.
*/
template checkReturnType()
{
Expand Down Expand Up @@ -7889,7 +7889,7 @@ else
Removes `shared` qualifier, if any, from type `T`.

Note that while `immutable` is implicitly `shared`, it is unaffected by
Unshared. Only explict `shared` is removed.
Unshared. Only explicit `shared` is removed.
+/
template Unshared(T)
{
Expand Down
Loading