diff --git a/cpp/include/raft/core/mdbuffer.cuh b/cpp/include/raft/core/mdbuffer.cuh index e4654d79d8..1a214597fc 100644 --- a/cpp/include/raft/core/mdbuffer.cuh +++ b/cpp/include/raft/core/mdbuffer.cuh @@ -285,7 +285,7 @@ struct default_buffer_container_policy { * using std::visit, as in the following example: * * @code{.cpp} - * void foo(raft::resources const& res, raft::mdbuffer> data) { + * void foo(raft::resources const& res, raft::mdbuffer>&& data) { * std::visit([](auto&& view) { * // Do something with the view, including (possibly) dispatching based on * // whether it is a host, device, managed, or pinned mdspan