From 7116a8ba129fd93cc908cbf34a0e7cd32781bfb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20A=2E=20Michel=C3=A9n=20Str=C3=B6fer?= Date: Sun, 13 Nov 2022 20:30:51 -0700 Subject: [PATCH] Fix documentation mistake in Test.jl (#47552) Fix a mistake in the documentation: remove the interpolated loop indices from the `@testset` macro with a function call, since there are no loops in that example. --- stdlib/Test/src/Test.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/Test/src/Test.jl b/stdlib/Test/src/Test.jl index c19d131781b8f..7a4dc3ec184d9 100644 --- a/stdlib/Test/src/Test.jl +++ b/stdlib/Test/src/Test.jl @@ -1309,7 +1309,7 @@ end @testset [CustomTestSet] [option=val ...] ["description"] begin ... end @testset [CustomTestSet] [option=val ...] ["description \$v"] for v in (...) ... end @testset [CustomTestSet] [option=val ...] ["description \$v, \$w"] for v in (...), w in (...) ... end - @testset [CustomTestSet] [option=val ...] ["description \$v, \$w"] foo() + @testset [CustomTestSet] [option=val ...] ["description"] foo() @testset let v = (...) ... end # With begin/end or function call