Skip to content

Commit 50a1b8d

Browse files
authored
Not all functions return rvalues
Add an exception for `ref'
1 parent 22f3701 commit 50a1b8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/function.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ $(H2 $(LNAME2 contracts, Contracts))
164164

165165
$(H2 $(LNAME2 function-return-values, Function Return Values))
166166

167-
$(P Function return values are considered to be rvalues.
167+
$(P Function return values not marked as $(D ref) are considered to be rvalues.
168168
This means they cannot be passed by reference to other functions.
169169
)
170170

0 commit comments

Comments
 (0)