mirror of
https://github.com/dlang/phobos.git
synced 2025-05-06 19:16:13 +03:00
Merge pull request #6648 from John-Colvin/patch-10
[trivial] fix get and peek links in std.variant docs merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
This commit is contained in:
commit
daced11cb6
1 changed files with 2 additions and 2 deletions
|
@ -13,8 +13,8 @@ languages, and comfortable exploratory programming.
|
|||
A $(LREF Variant) object can hold a value of any type, with very few
|
||||
restrictions (such as `shared` types and noncopyable types). Setting the value
|
||||
is as immediate as assigning to the `Variant` object. To read back the value of
|
||||
the appropriate type `T`, use the $(LREF get!T) call. To query whether a
|
||||
`Variant` currently holds a value of type `T`, use $(LREF peek!T). To fetch the
|
||||
the appropriate type `T`, use the $(LREF get) method. To query whether a
|
||||
`Variant` currently holds a value of type `T`, use $(LREF peek). To fetch the
|
||||
exact type currently held, call $(LREF type), which returns the `TypeInfo` of
|
||||
the current value.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue