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 e9e26b4 commit 3d873a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/ref/corelib/json/allocators.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ If `j` and `j1` both hold pointers, `basic_json` move assignment
j1 = std::move(j);
```

swaps the two pointers. If `j` holds a pointer and `j1` holds a non-pointer value,
swaps the two pointers. If `j` holds a pointer and `j1` 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
If `j` holds a non-pointer and `j1` a pointer value, move assignment copies `j`'s
value to `j1` and leaves `j` alone. For example:

```cpp
Expand Down

0 comments on commit 3d873a9

Please sign in to comment.