From 90245be2beb0f7331e60f5f21b0c6384f84d0afb Mon Sep 17 00:00:00 2001 From: Markus Werle Date: Wed, 27 Mar 2024 09:23:11 +0100 Subject: [PATCH] fix typo in code example The markdown code example contains a name `nth_value` which is not defined. This commit aligns the example with the code in https://godbolt.org/z/bc71YxGY1 --- tips/358.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tips/358.md b/tips/358.md index 7a1eb87..e3a3032 100644 --- a/tips/358.md +++ b/tips/358.md @@ -41,7 +41,7 @@ constexpr decltype(auto) nth(T0&& p0, Types&&... pack) noexcept if constexpr (0 == Index) return std::forward(p0); else - return nth_value(std::forward(pack)...); + return nth(std::forward(pack)...); } consteval auto first(auto... ts) {