From 5083c41d40fbbd7cc4527696378a2ccd9a500998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20Krzemie=C5=84ski?= Date: Sat, 30 Mar 2019 21:47:00 +0100 Subject: [PATCH] docs: fix throws specification in `emplace()` --- doc/variant2/reference.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/variant2/reference.adoc b/doc/variant2/reference.adoc index a9c20ec..6b96385 100644 --- a/doc/variant2/reference.adoc +++ b/doc/variant2/reference.adoc @@ -503,7 +503,7 @@ Effects: :: Ensures: :: `index() == I`. Returns: :: A reference to the new contained value. Throws: :: - Nothing unless the initialization of the new contained value throws. + Whatever the initialization of the new contained value throws. Exception Safety: :: On exception: - If the list of alternatives contains `monostate`, the contained value is either unchanged, or `monostate{}`; @@ -530,7 +530,7 @@ Effects: :: Ensures: :: `index() == I`. Returns: :: A reference to the new contained value. Throws: :: - Nothing unless the initialization of the new contained value throws. + Whatever the initialization of the new contained value throws. Exception Safety: :: On exception: - If the list of alternatives contains `monostate`, the contained value is either unchanged, or `monostate{}`;