Skip to content

Commit 01298b3

Browse files
authored
fix typo (dlang#23037)
1 parent 4d5e64d commit 01298b3

12 files changed

Lines changed: 21 additions & 21 deletions

File tree

compiler/src/dmd/aggregate.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const(char)* ClassKindToChars(ClassKind c) @safe
7272
}
7373

7474
/**
75-
* If an aggregate has a pargma(mangle, ...) this holds the information
75+
* If an aggregate has a pragma(mangle, ...) this holds the information
7676
* to mangle.
7777
*/
7878
struct MangleOverride

compiler/src/dmd/astbase.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import dmd.expression;
1717

1818
/** The ASTBase family defines a family of AST nodes appropriate for parsing with
1919
* no semantic information. It defines all the AST nodes that the parser needs
20-
* and also all the conveniance methods and variables. The resulting AST can be
20+
* and also all the convenience methods and variables. The resulting AST can be
2121
* visited with the strict, permissive and transitive visitors.
2222
* The ASTBase family is used to instantiate the parser in the parser library.
2323
*/

compiler/src/dmd/attrib.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ extern (C++) class StorageClassDeclaration : AttribDeclaration
145145

146146
/***********************************************************
147147
* Deprecation with an additional message applied to Dsymbols,
148-
* e.g. `deprecated("Superseeded by foo") int bar;`.
148+
* e.g. `deprecated("Superseded by foo") int bar;`.
149149
* (Note that `deprecated int bar;` is currently represented as a
150150
* StorageClassDeclaration with STC.deprecated_)
151151
*

compiler/src/dmd/backend/cv8.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* CodeView 8 symbolic debug info generation
33
*
4-
* This module generates the `.debug$S` and ``.debug$T` sections for Win64,
4+
* This module generates the `.debug$S` and `.debug$T` sections for Win64,
55
* which are the MS-Coff symbolic debug info and type debug info sections.
66
*
77
* Compiler implementation of the
@@ -71,7 +71,7 @@ private __gshared OutBuffer* F2_buf;
7171
// The "F3" section, which is global and a string table of source file names.
7272
private __gshared OutBuffer* F3_buf;
7373

74-
// The "F4" section, which is global and a lists info about source files.
74+
// The "F4" section, which is global and a list of info about source files.
7575
private __gshared OutBuffer* F4_buf;
7676

7777
/* Fixups that go into F1 section

compiler/src/dmd/builtin.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ BUILTIN determine_builtin(FuncDeclaration func)
119119
if (id3 == Id.sin) return BUILTIN.sin;
120120
if (id3 == Id.cos) return BUILTIN.cos;
121121
if (id3 == Id.tan) return BUILTIN.tan;
122-
if (id3 == Id.atan2) return BUILTIN.unimp; // N.B unimplmeneted
122+
if (id3 == Id.atan2) return BUILTIN.unimp; // N.B unimplemented
123123

124124
if (id3 == Id._sqrt) return BUILTIN.sqrt;
125125
if (id3 == Id.fabs) return BUILTIN.fabs;

compiler/src/dmd/chkformat.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ bool isFormatSafe(scope const char[] format)
6565
*
6666
* Follows the C99 specification for printf.
6767
*
68-
* Takes a generous, rather than strict, view of compatiblity.
68+
* Takes a generous, rather than strict, view of compatibility.
6969
* For example, an unsigned value can be formatted with a signed specifier.
7070
*
7171
* Diagnosed incompatibilities are:
@@ -366,7 +366,7 @@ bool checkPrintfFormat(Loc loc, scope const char[] format, scope Expression[] ar
366366
*
367367
* Follows the C99 specification for scanf.
368368
*
369-
* Takes a generous, rather than strict, view of compatiblity.
369+
* Takes a generous, rather than strict, view of compatibility.
370370
* For example, an unsigned value can be formatted with a signed specifier.
371371
*
372372
* Diagnosed incompatibilities are:

compiler/src/dmd/escape.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ bool checkAssocArrayLiteralEscape(ref Scope sc, AssocArrayLiteralExp ae, bool ga
283283
}
284284

285285
/**
286-
* An error occured due to `v` either being or not being `scope`.
286+
* An error occurred due to `v` either being or not being `scope`.
287287
* If applicable, print why the `v` was inferred that way.
288288
*
289289
* Params:
@@ -1398,7 +1398,7 @@ private bool checkReturnEscapeImpl(ref Scope sc, Expression e, bool refs, bool g
13981398
* Params:
13991399
* va = variable to infer scope for
14001400
* reason = optional Expression that causes `va` to infer scope, used for supplemental error message
1401-
* Returns: `true` if succesful or already `scope`
1401+
* Returns: `true` if successful or already `scope`
14021402
*/
14031403
private
14041404
bool inferScope(VarDeclaration va, RootObject reason)

compiler/src/dmd/safe.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ bool setUnsafe(Scope* sc, bool gag, Loc loc, VarDeclaration scopeVar,
542542
* loc = location of error
543543
* format = printf-style format string
544544
* args = arguments for format string
545-
* Returns: whether an actual safe error (not deprecation) occured
545+
* Returns: whether an actual safe error (not deprecation) occurred
546546
*/
547547
bool setUnsafePreview(Scope* sc, FeatureState fs, bool gag, Loc loc, const(char)* format, RootObject[] args...)
548548
{

compiler/src/dmd/traits.d

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@ Expression semanticTraits(TraitsExp e, Scope* sc)
12271227

12281228
/* Compute the function signature and insert it in the
12291229
* hashtable, if not present. This is needed so that
1230-
* traits(getOverlods, F3, "visit") does not count `int visit(int)`
1230+
* traits(getOverloads, F3, "visit") does not count `int visit(int)`
12311231
* twice in the following example:
12321232
*
12331233
* =============================================
@@ -1730,7 +1730,7 @@ Expression semanticTraits(TraitsExp e, Scope* sc)
17301730
if (!s)
17311731
{
17321732
error(e.loc, "in expression `%s` `%s` can't have members", e.toErrMsg(), o.toErrMsg());
1733-
errorSupplemental(e.loc, "`%s` must evaluate to either a module, a struct, an union, a class, an interface or a template instantiation", o.toChars());
1733+
errorSupplemental(e.loc, "`%s` must evaluate to either a module, a struct, a union, a class, an interface or a template instantiation", o.toChars());
17341734

17351735
return ErrorExp.get();
17361736
}
@@ -1753,7 +1753,7 @@ Expression semanticTraits(TraitsExp e, Scope* sc)
17531753
if (!sds || sds.isTemplateDeclaration())
17541754
{
17551755
error(e.loc, "in expression `%s` %s `%s` has no members", e.toErrMsg(), s.kind(), s.toErrMsg());
1756-
errorSupplemental(e.loc, "`%s` must evaluate to either a module, a struct, an union, a class, an interface or a template instantiation", s.toChars());
1756+
errorSupplemental(e.loc, "`%s` must evaluate to either a module, a struct, a union, a class, an interface or a template instantiation", s.toChars());
17571757
return ErrorExp.get();
17581758
}
17591759
// https://issues.dlang.org/show_bug.cgi?id=13668
@@ -2176,7 +2176,7 @@ Expression semanticTraits(TraitsExp e, Scope* sc)
21762176
{
21772177
// Semantic processing will convert `extern(C++, "a", "b", "c")`
21782178
// into `extern(C++, "a") extern(C++, "b") extern(C++, "c")`,
2179-
// creating a linked list what `a`'s `cppnamespace` points to `b`,
2179+
// creating a linked list where `a`'s `cppnamespace` points to `b`,
21802180
// and `b`'s points to `c`. Our entry point is `a`.
21812181
for (; ns !is null; ns = ns.cppnamespace)
21822182
{

compiler/test/fail_compilation/ice14844.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
TEST_OUTPUT:
33
---
44
fail_compilation/ice14844.d(21): Error: in expression `__traits(allMembers, opDispatch)` template `opDispatch(string name)` has no members
5-
fail_compilation/ice14844.d(21): `opDispatch(string name)` must evaluate to either a module, a struct, an union, a class, an interface or a template instantiation
5+
fail_compilation/ice14844.d(21): `opDispatch(string name)` must evaluate to either a module, a struct, a union, a class, an interface or a template instantiation
66
---
77
*/
88

0 commit comments

Comments
 (0)