Skip to content

Commit

Permalink
Doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaparker committed Oct 24, 2024
1 parent 196b912 commit e9e26b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/ref/corelib/json/allocators.md
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {};
Expand All @@ -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];
Expand Down

0 comments on commit e9e26b4

Please sign in to comment.