From 29bd6b499ecf7d30b811947b6ddd7cd5efeda6f2 Mon Sep 17 00:00:00 2001 From: William Hicks Date: Wed, 15 Nov 2023 17:19:01 -0500 Subject: [PATCH] Tweak mdbuffer example code --- cpp/include/raft/core/mdbuffer.cuh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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