@@ -34,28 +34,28 @@ namespace RMM_NAMESPACE {
3434 * behavior to read the contents of `data()` before first initializing it.
3535 *
3636 * Examples:
37- * ```
38- * //Allocates at least 100 bytes of device memory using the default memory
39- * //resource and default stream.
37+ * ```cpp
38+ * // Allocates at least 100 bytes of device memory using the default memory
39+ * // resource and default stream.
4040 * device_buffer buff(100);
4141 *
42- * // allocates at least 100 bytes using the custom memory resource and
42+ * // Allocates at least 100 bytes using the custom memory resource and
4343 * // specified stream
4444 * custom_memory_resource mr;
4545 * cuda_stream_view stream = cuda_stream_view{};
4646 * device_buffer custom_buff(100, stream, &mr);
4747 *
48- * // deep copies `buff` into a new device buffer using the specified stream
48+ * // Deep copies `buff` into a new device buffer using the specified stream
4949 * device_buffer buff_copy(buff, stream);
5050 *
51- * // moves the memory in `from_buff` to `to_buff`. Deallocates previously allocated
51+ * // Moves the memory in `from_buff` to `to_buff`. Deallocates previously allocated
5252 * // to_buff memory on `to_buff.stream()`.
5353 * device_buffer to_buff(std::move(from_buff));
5454 *
55- * // deep copies `buff` into a new device buffer using the specified stream
55+ * // Deep copies `buff` into a new device buffer using the specified stream
5656 * device_buffer buff_copy(buff, stream);
5757 *
58- * // shallow copies `buff` into a new device_buffer, `buff` is now empty
58+ * // Shallow copies `buff` into a new device_buffer, `buff` is now empty
5959 * device_buffer buff_move(std::move(buff));
6060 *
6161 * // Default construction. Buffer is empty
@@ -65,7 +65,7 @@ namespace RMM_NAMESPACE {
6565 * // deep copies any previous contents. Otherwise, simply updates the value of `size()` to the
6666 * // newly requested size without any allocations or copies. Uses the specified stream.
6767 * buff_default.resize(100, stream);
68- *```
68+ * ```
6969 */
7070class device_buffer {
7171 public:
0 commit comments