File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -783,7 +783,7 @@ void main()
783
783
$(P An unqualified postblit will get called even if the
784
784
struct is instantiated as `immutable` or `const`, but
785
785
the compiler issues an error if the struct is instantiated
786
- as shared:)
786
+ as ` shared` :)
787
787
788
788
$(SPEC_RUNNABLE_EXAMPLE_COMPILE
789
789
---
@@ -824,8 +824,8 @@ void main()
824
824
$(P Note that when `const` and `immutable` are used to explicitly
825
825
qualify a postblit as in `this(this) const immutable;` or
826
826
`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`
829
829
and the postblit as `immutable`/`const` achieves the effect of applying
830
830
both qualifiers to the postblit. In both cases the postblit is
831
831
qualified with the more restrictive qualifier, which is `immutable`.
You can’t perform that action at this time.
0 commit comments