Skip to content

Commit 698de76

Browse files
committed
Don't use 'modifier'
1 parent d14fe6c commit 698de76

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

spec/function.dd

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -669,14 +669,15 @@ $(H2 $(LNAME2 inout-functions, Inout Functions))
669669
)
670670

671671
$(P The $(D_KEYWORD inout) keyword forms a wildcard that stands in for
672-
one of these modifiers: mutable, `const`, `immutable`, `inout`, or `inout const`.
673-
When calling the function, the `inout` modifier of the return type is changed to
674-
match one of the above modifiers in the argument type to the `inout` parameter.
672+
mutable, `const`, `immutable`, `inout`, or `inout const`.
673+
When calling the function, the `inout` state of the return type is changed to
674+
match that of the argument type passed to the `inout` parameter.
675675
)
676676

677677
$(P `inout` can also be used as a type constructor inside a function that has a
678-
parameter declared with `inout`. Again, the `inout` modifier is changed to match
679-
one of the listed modifiers in the argument type to the `inout` parameter.
678+
parameter declared with `inout`. The `inout` state of a type declared with
679+
`inout` is changed to match that of the argument type passed to the `inout`
680+
parameter:
680681
)
681682

682683
$(SPEC_RUNNABLE_EXAMPLE_COMPILE

0 commit comments

Comments
 (0)