diff options
author | Loo Rong Jie <loorongjie@gmail.com> | 2018-09-28T17·41+0800 |
---|---|---|
committer | Derek Mauro <761129+derekmauro@users.noreply.github.com> | 2018-09-28T17·41-0400 |
commit | 5441bbe1db5d0f2ca24b5b60166367b0966790af (patch) | |
tree | ac1db63644dcc4768109cde091dfdc3431776fa8 /absl/container/internal | |
parent | 5aae0cffae8ffaacab965756169b34e511b353df (diff) |
Fix code snippet in comment (#174)
Diffstat (limited to 'absl/container/internal')
-rw-r--r-- | absl/container/internal/layout.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/container/internal/layout.h b/absl/container/internal/layout.h index 0c239fe876c5..676c7d67ee68 100644 --- a/absl/container/internal/layout.h +++ b/absl/container/internal/layout.h @@ -456,7 +456,7 @@ class LayoutImpl<std::tuple<Elements...>, absl::index_sequence<SizeSeq...>, // // // int[3], 4 bytes of padding, double[4]. // Layout<int, double> x(3, 4); - // unsigned char* p = unsigned char[x.AllocSize()]; + // unsigned char* p = new unsigned char[x.AllocSize()]; // int* ints = x.Pointer<0>(p); // double* doubles = x.Pointer<1>(p); // |