From bd450f98315e42976b2f00f8627e249cf8ee3874 Mon Sep 17 00:00:00 2001 From: Klemens Morgenstern Date: Thu, 26 Jun 2025 23:17:08 +0800 Subject: [PATCH] fixed wrong comment/doc using .stderr Closes #500 --- doc/reference/stdio.adoc | 2 +- include/boost/process/v2/stdio.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/reference/stdio.adoc b/doc/reference/stdio.adoc index cca6082e..79603f6d 100644 --- a/doc/reference/stdio.adoc +++ b/doc/reference/stdio.adoc @@ -26,7 +26,7 @@ in later version of C++. asio::io_context ctx; /// C++17 -v2::process proc17(ctx, "/bin/bash", {}, v2::process_stdio{.stderr=nullptr}); +v2::process proc17(ctx, "/bin/bash", {}, v2::process_stdio{.err=nullptr}); /// C++11 & C++14 v2::process proc17(ctx, "/bin/bash", {}, v2::process_stdio{ {}, {}, nullptr}); ---- diff --git a/include/boost/process/v2/stdio.hpp b/include/boost/process/v2/stdio.hpp index 47030c7f..01d02161 100644 --- a/include/boost/process/v2/stdio.hpp +++ b/include/boost/process/v2/stdio.hpp @@ -308,7 +308,7 @@ typedef process_io_binding process_error_binding; * * @code {.cpp} * asio::io_context ctx; * /// C++17 - * v2::process proc17(ctx, "/bin/bash", {}, v2::process_stdio{.stderr=nullptr}); + * v2::process proc17(ctx, "/bin/bash", {}, v2::process_stdio{.err=nullptr}); * /// C++11 & C++14 * v2::process proc17(ctx, "/bin/bash", {}, v2::process_stdio{ {}, {}, nullptr}); * stdin ^ ^ stderr