@@ -1602,7 +1602,7 @@ $(H3 $(LNAME2 scope-parameters, Scope Parameters))
1602
1602
(e.g. by being assigned to a global variable). It has no effect for non-reference types.
1603
1603
`scope` escape analysis is only done for `@safe` functions. For other functions `scope`
1604
1604
semantics must be manually enforced.)
1605
- $(P $(B Note): `scope` escape analysis is currently only done by `dmd`
1605
+ $(NOTE `scope` escape analysis is currently only done by the `dmd` compiler
1606
1606
when the `-dip1000` switch is passed.)
1607
1607
1608
1608
---
@@ -1632,7 +1632,7 @@ int* balin(scope int* q, int* r)
1632
1632
literal or a $(GLINK2 expression, NewExpression) to a scope parameter may be allowed in a
1633
1633
`@nogc` context, depending on the compiler implementation.)
1634
1634
1635
- $(H4 $(LNAME2 return-scope-parameters, Return Scope Parameters))
1635
+ $(H3 $(LNAME2 return-scope-parameters, Return Scope Parameters))
1636
1636
1637
1637
$(P Parameters marked as `return scope` that contain indirections
1638
1638
can only escape those indirections via the function's return value.)
@@ -1693,13 +1693,13 @@ class C
1693
1693
$(P Template functions, auto functions, nested functions and lambdas can deduce
1694
1694
the `return scope` attribute.)
1695
1695
1696
- $(H4 $(LNAME2 ref-return-scope-parameters, Ref Return Scope Parameters))
1696
+ $(H3 $(LNAME2 ref-return-scope-parameters, Ref Return Scope Parameters))
1697
1697
1698
1698
$(P Parameters marked as `ref return scope` come in two forms:)
1699
1699
1700
1700
---
1701
1701
U xerxes(ref return scope V v); // (1) ref and return scope
1702
- ref U xerxes (ref return scope V v); // (2) return ref and scope
1702
+ ref U sargon (ref return scope V v); // (2) return ref and scope
1703
1703
---
1704
1704
1705
1705
$(P The first form attaches the `return` to the `scope`, and has
0 commit comments