From de027a8b1f966a3dae02d7f07af9c00ef65f1ed9 Mon Sep 17 00:00:00 2001 From: "NODA, Kai" Date: Wed, 24 Sep 2014 21:47:11 +0800 Subject: [PATCH] guide-pointers.md: C sample code should match the Rust version. Fix rust-lang/rust#17255 --- src/doc/guide-pointers.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/doc/guide-pointers.md b/src/doc/guide-pointers.md index 6492400a2cfc7..b920ffbdd1a18 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