Skip to content

Commit 0cc18e5

Browse files
committed
Add link to explicit discard design note
1 parent 53b158d commit 0cc18e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/cpp2/functions.md

+2
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ main: ()
213213
>
214214
> - A function call written in Cpp2 `x.f()` member call syntax always treats a non-`#!cpp void` return type as not discardable, even if the function was written in Cpp1 syntax that did not write `[[nodiscard]]`.
215215
216+
For details and rationale, see [Design note: Explicit discard](https://github.com/hsutter/cppfront/wiki/Design-note%3A-Explicit-discard).
217+
216218

217219
### <a id = "function-types"></a> Using function types
218220

0 commit comments

Comments
 (0)