about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-09-27 07:43:24 +0000
committerbors <bors@rust-lang.org>2014-09-27 07:43:24 +0000
commit6cde5c340d5879974a079cb5cd941335f329e36b (patch)
treedaddc4596ce585cc2b75155bf793b7b1ce4835e3
parent606bf110bc1a5b2eaeacf1d3ae7d9a3ab8d9b78e (diff)
parentde027a8b1f966a3dae02d7f07af9c00ef65f1ed9 (diff)
downloadrust-6cde5c340d5879974a079cb5cd941335f329e36b.tar.gz
rust-6cde5c340d5879974a079cb5cd941335f329e36b.zip
auto merge of #17512 : nodakai/rust/fix-ptr-guide, r=alexcrichton
Fix rust-lang/rust#17255

This is such a trivial change.  Devs: perhaps you might want to omit to run `make check` on Travis.
-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