Skip to content

Commit ed91e50

Browse files
committed
sumtype: add list of examples to module doc
This will hopefully make it easier for readers to notice that all of these examples exist.
1 parent 1aa99f8 commit ed91e50

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

std/sumtype.d

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ include:
1111
* No dependency on runtime type information (`TypeInfo`).
1212
* Compatibility with BetterC.
1313
14+
$(H3 List of examples)
15+
16+
* [Basic usage](#basic-usage)
17+
* [Matching with an overload set](#matching-with-an-overload-set)
18+
* [Recursive SumTypes](#recursive-sumtypes)
19+
* [Memory corruption](#memory-corruption) (why assignment can be `@system`)
20+
* [Avoiding unintentional matches](#avoiding-unintentional-matches)
21+
* [Multiple dispatch](#multiple-dispatch)
22+
1423
License: Boost License 1.0
1524
Authors: Paul Backus
1625
Source: $(PHOBOSSRC std/sumtype.d)

0 commit comments

Comments
 (0)