about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNODA, Kai <nodakai@gmail.com>2014-09-24 21:47:11 +0800
committerNODA, Kai <nodakai@gmail.com>2014-09-24 21:53:11 +0800
commitde027a8b1f966a3dae02d7f07af9c00ef65f1ed9 (patch)
tree3ea0875bb23cf56704c1999c199c83c5ca446759
parentc669411afa76bdc92369a3a193e9393364d42370 (diff)
downloadrust-de027a8b1f966a3dae02d7f07af9c00ef65f1ed9.tar.gz
rust-de027a8b1f966a3dae02d7f07af9c00ef65f1ed9.zip
guide-pointers.md: C sample code should match the Rust version.
Fix rust-lang/rust#17255
-rw-r--r--src/doc/guide-pointers.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/doc/guide-pointers.md b/src/doc/guide-pointers.md
index 6492400a2cf..b920ffbdd1a 100644
--- a/src/doc/guide-pointers.md
+++ b/src/doc/guide-pointers.md
@@ -505,6 +505,7 @@ As being similar to this C code:
 {
     int *x;
     x = (int *)malloc(sizeof(int));
+    *x = 5;
 
     // stuff happens