From e9e26b4f53a653d0783d871c95bec53add115003 Mon Sep 17 00:00:00 2001 From: Daniel Parker Date: Wed, 23 Oct 2024 20:28:21 -0400 Subject: [PATCH] Doc update --- doc/ref/corelib/json/allocators.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/ref/corelib/json/allocators.md b/doc/ref/corelib/json/allocators.md index 3c2ef15df..ba20d18f9 100644 --- a/doc/ref/corelib/json/allocators.md +++ b/doc/ref/corelib/json/allocators.md @@ -23,7 +23,7 @@ For other data members the allocator argument is ignored. Json j1(std::move(j)); ``` -copies the pointer or scalar value in `j` to `j1`, and changes the data member in `j` to `null`. For example: +initializes `j1` with the pointer or non-pointer value in `j`, and changes the value in `j` to `null`. For example: ``` char buffer[1024] = {}; @@ -49,9 +49,9 @@ j1 = std::move(j); ``` swaps the two pointers. If `j` holds a pointer and `j1` holds a non-pointer value, -move assignment copies `j`'s pointer to `j1` and changes `j`'s value to null. -If `j` holds a non-pointer and `j1` holds a pointer value, -move assignment copies `j`'s value to `j1` and leaves `j` alone. For example: +move assignment copies `j`'s pointer to `j1` and changes `j`'s value to null. +If `j` holds a non-pointer and `j1` holds a pointer value, move assignment copies `j`'s +value to `j1` and leaves `j` alone. For example: ```cpp char buffer[1024];