Skip to content

Commit 8d4c81b

Browse files
authored
Merge pull request #2298 from RazvanN7/Fix_structdd
Fix quotations in struct.dd merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2 parents 2cdbe16 + abe2dd5 commit 8d4c81b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/struct.dd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ void main()
783783
$(P An unqualified postblit will get called even if the
784784
struct is instantiated as `immutable` or `const`, but
785785
the compiler issues an error if the struct is instantiated
786-
as shared:)
786+
as `shared`:)
787787

788788
$(SPEC_RUNNABLE_EXAMPLE_COMPILE
789789
---
@@ -824,8 +824,8 @@ void main()
824824
$(P Note that when `const` and `immutable` are used to explicitly
825825
qualify a postblit as in `this(this) const immutable;` or
826826
`const immutable this(this);` - the order in which the qualifiers
827-
are declared does not matter - the compiler generates a `conflicting
828-
attribute error`, however declaring the struct as `const`/`immutable`
827+
are declared does not matter - the compiler generates a conflicting
828+
attribute error, however declaring the struct as `const`/`immutable`
829829
and the postblit as `immutable`/`const` achieves the effect of applying
830830
both qualifiers to the postblit. In both cases the postblit is
831831
qualified with the more restrictive qualifier, which is `immutable`.

0 commit comments

Comments
 (0)