From 86ccdccf0f6f3579bade4dca1c56011bbb5c7b44 Mon Sep 17 00:00:00 2001 From: Ben Leadbetter Date: Mon, 19 Jan 2026 17:10:38 +0100 Subject: [PATCH] doc: fixes incorrect documentation for diff algorithm utility function --- immer/algorithm.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/immer/algorithm.hpp b/immer/algorithm.hpp index 382df02d..de1511ed 100644 --- a/immer/algorithm.hpp +++ b/immer/algorithm.hpp @@ -239,8 +239,9 @@ bool all_of(Iter first, Iter last, Pred p) * @tparam RemovedFn Unary function that is called whenever a removed element is * found. It is called with the removed element as argument. * - * @tparam ChangedFn Unary function that is called whenever a changed element is - * found. It is called with the changed element as argument. + * @tparam ChangedFn Binary function that is called whenever a changed element is + * found. It is called with the old value as the first argument and the + * new value as the second. */ template struct differ