summaryrefslogtreecommitdiff
path: root/absl/container
diff options
context:
space:
mode:
authorGravatar Loo Rong Jie <loorongjie@gmail.com>2018-09-29 01:41:11 +0800
committerGravatar Derek Mauro <761129+derekmauro@users.noreply.github.com>2018-09-28 13:41:11 -0400
commit5441bbe1db5d0f2ca24b5b60166367b0966790af (patch)
treeac1db63644dcc4768109cde091dfdc3431776fa8 /absl/container
parent5aae0cffae8ffaacab965756169b34e511b353df (diff)
Fix code snippet in comment (#174)
Diffstat (limited to 'absl/container')
-rw-r--r--absl/container/internal/layout.h2
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);
//