diff options
author | Loo Rong Jie <loorongjie@gmail.com> | 2018-09-29 01:41:11 +0800 |
---|---|---|
committer | Derek Mauro <761129+derekmauro@users.noreply.github.com> | 2018-09-28 13:41:11 -0400 |
commit | 5441bbe1db5d0f2ca24b5b60166367b0966790af (patch) | |
tree | ac1db63644dcc4768109cde091dfdc3431776fa8 | |
parent | 5aae0cffae8ffaacab965756169b34e511b353df (diff) |
Fix code snippet in comment (#174)
-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 0c239fe8..676c7d67 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); // |