From 4b787c71fdbbea37de0f37c4683acda8c3650aa3 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Wed, 1 Aug 2018 14:19:41 +0100 Subject: [PATCH] fix get and peek links in std.variant docs --- std/variant.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/std/variant.d b/std/variant.d index db98e1eb4..c7a1a0dbb 100644 --- a/std/variant.d +++ b/std/variant.d @@ -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.