diff --git a/src/libexpr-c/nix_api_expr.h b/src/libexpr-c/nix_api_expr.h index f8d181452..2be739955 100644 --- a/src/libexpr-c/nix_api_expr.h +++ b/src/libexpr-c/nix_api_expr.h @@ -286,6 +286,11 @@ nix_err nix_gc_incref(nix_c_context * context, const void * object); /** * @brief Decrement the garbage collector reference counter for the given object * + * We also provide typed `nix_*_decref` functions, which are + * - safer to use + * - easier to integrate when deriving bindings + * - allow more flexibility + * * @param[out] context Optional, stores error information * @param[in] object The object to stop referencing */ diff --git a/src/libexpr/value-to-json.cc b/src/libexpr/value-to-json.cc index 51652db1f..4c0667d9e 100644 --- a/src/libexpr/value-to-json.cc +++ b/src/libexpr/value-to-json.cc @@ -10,6 +10,7 @@ namespace nix { using json = nlohmann::json; +// TODO: rename. It doesn't print. json printValueAsJSON(EvalState & state, bool strict, Value & v, const PosIdx pos, NixStringContext & context, bool copyToStore) { diff --git a/src/libflake/include/nix/flake/flake.hh b/src/libflake/include/nix/flake/flake.hh index 3336f8557..3b98f1400 100644 --- a/src/libflake/include/nix/flake/flake.hh +++ b/src/libflake/include/nix/flake/flake.hh @@ -63,7 +63,7 @@ struct ConfigFile }; /** - * The contents of a flake.nix file. + * A flake in context */ struct Flake {