]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #73867 - poliorcetics:union-keyword, r=joshtriplett
authorManish Goregaokar <manishsmail@gmail.com>
Tue, 14 Jul 2020 05:23:03 +0000 (22:23 -0700)
committerGitHub <noreply@github.com>
Tue, 14 Jul 2020 05:23:03 +0000 (22:23 -0700)
commitd9614dbe477dcc814815cd64fc8867360bdf0b4f
tree98c36e83f1c772e992b97fd89957592265ee35f4
parenteb7fdb2e075e703af33da0b9b48335a39e3f9097
parent614f7738ba65ac37f2dc61afa8c68fc3768fdffc
Rollup merge of #73867 - poliorcetics:union-keyword, r=joshtriplett

Document the union keyword

Partial fix of #34601.

This documents the `union` keyword by presenting three cases: simply using a union, matching on a union and referencing the fields of a union.

@rustbot modify labels: T-doc,C-enhancement
src/libstd/keyword_docs.rs