diff --git a/docs/examples/get_allocator.cpp b/docs/examples/get_allocator.cpp index 4014ec3d9..35079a10c 100644 --- a/docs/examples/get_allocator.cpp +++ b/docs/examples/get_allocator.cpp @@ -8,7 +8,7 @@ int main() auto alloc = json::get_allocator(); using traits_t = std::allocator_traits; - json *j = traits_t::allocate(alloc, 1); + json* j = traits_t::allocate(alloc, 1); traits_t::construct(alloc, j, "Hello, world!"); std::cout << *j << std::endl;