From 8ead7e22abbd11d3e138d59774d7259e64bde126 Mon Sep 17 00:00:00 2001 From: Philipp Zander Date: Tue, 4 Jun 2024 03:09:49 +0200 Subject: [PATCH 1/3] improve note in `nix_value_force` documentation again --- src/libexpr-c/nix_api_expr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libexpr-c/nix_api_expr.h b/src/libexpr-c/nix_api_expr.h index 0d324b1489b..6cfc981e892 100644 --- a/src/libexpr-c/nix_api_expr.h +++ b/src/libexpr-c/nix_api_expr.h @@ -129,8 +129,8 @@ nix_err nix_value_call_multi( * * This function converts these Values into their final type. * - * @note You don't need this function for basic API usage very often, since all functions that return a `Value` call it - * for you. This function is mainly needed before calling @ref getters. + * @note You don't need this function for basic API usage as long as you use functions that return a `Value`. This + * function is mainly needed before calling @ref getters. * * @param[out] context Optional, stores error information * @param[in] state The state of the evaluation. From a5c6b8512d17f7dd34de7657b155bd967c1ea9fb Mon Sep 17 00:00:00 2001 From: Valentin Gagarin Date: Tue, 4 Jun 2024 08:45:35 +0200 Subject: [PATCH 2/3] simplify wording --- src/libexpr-c/nix_api_expr.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libexpr-c/nix_api_expr.h b/src/libexpr-c/nix_api_expr.h index 6cfc981e892..e81f6fc9b04 100644 --- a/src/libexpr-c/nix_api_expr.h +++ b/src/libexpr-c/nix_api_expr.h @@ -129,8 +129,7 @@ nix_err nix_value_call_multi( * * This function converts these Values into their final type. * - * @note You don't need this function for basic API usage as long as you use functions that return a `Value`. This - * function is mainly needed before calling @ref getters. + * @note This function is mainly needed before calling @ref getters, but not for API calls that return a `Value`. * * @param[out] context Optional, stores error information * @param[in] state The state of the evaluation. From 8b4d867a32d8627daafbda3f739828f4c36e1f21 Mon Sep 17 00:00:00 2001 From: Valentin Gagarin Date: Tue, 4 Jun 2024 09:18:05 +0200 Subject: [PATCH 3/3] strip trailing whitespace --- src/libexpr-c/nix_api_expr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libexpr-c/nix_api_expr.h b/src/libexpr-c/nix_api_expr.h index e81f6fc9b04..13787271bce 100644 --- a/src/libexpr-c/nix_api_expr.h +++ b/src/libexpr-c/nix_api_expr.h @@ -129,7 +129,7 @@ nix_err nix_value_call_multi( * * This function converts these Values into their final type. * - * @note This function is mainly needed before calling @ref getters, but not for API calls that return a `Value`. + * @note This function is mainly needed before calling @ref getters, but not for API calls that return a `Value`. * * @param[out] context Optional, stores error information * @param[in] state The state of the evaluation.