diff --git a/std/algorithm/comparison.d b/std/algorithm/comparison.d index c00bccf9424..f7099a5e181 100644 --- a/std/algorithm/comparison.d +++ b/std/algorithm/comparison.d @@ -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. */ diff --git a/std/bitmanip.d b/std/bitmanip.d index f8a97dfbf19..44e5fdc98d2 100644 --- a/std/bitmanip.d +++ b/std/bitmanip.d @@ -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`. */ diff --git a/std/checkedint.d b/std/checkedint.d index 120a976f3c7..e4dac78c8bb 100644 --- a/std/checkedint.d +++ b/std/checkedint.d @@ -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, diff --git a/std/container/dlist.d b/std/container/dlist.d index 58b429fe041..72b76e0f69d 100644 --- a/std/container/dlist.d +++ b/std/container/dlist.d @@ -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) @@ -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) diff --git a/std/container/package.d b/std/container/package.d index 57373ba0aef..22f6d4e9798 100644 --- a/std/container/package.d +++ b/std/container/package.d @@ -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. diff --git a/std/format/package.d b/std/format/package.d index 5dadce0877a..511ca3aa05c 100644 --- a/std/format/package.d +++ b/std/format/package.d @@ -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 diff --git a/std/functional.d b/std/functional.d index 1c2e6dda5fc..9ff00ba7994 100644 --- a/std/functional.d +++ b/std/functional.d @@ -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. diff --git a/std/math/operations.d b/std/math/operations.d index 8a92c4ae72e..a178a737401 100644 --- a/std/math/operations.d +++ b/std/math/operations.d @@ -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`. @@ -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`. diff --git a/std/path.d b/std/path.d index 13694ee875e..d94f4263d07 100644 --- a/std/path.d +++ b/std/path.d @@ -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) { diff --git a/std/regex/internal/ir.d b/std/regex/internal/ir.d index 3ec860b3c43..a72d9c1f050 100644 --- a/std/regex/internal/ir.d +++ b/std/regex/internal/ir.d @@ -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 diff --git a/std/traits.d b/std/traits.d index 0f04afb55ff..b5d1ba7d30d 100644 --- a/std/traits.d +++ b/std/traits.d @@ -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); } @@ -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() { @@ -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) {