Skip to content

Commit 6cde5c3

Browse files
committed
auto merge of #17512 : nodakai/rust/fix-ptr-guide, r=alexcrichton
Fix #17255 This is such a trivial change. Devs: perhaps you might want to omit to run `make check` on Travis.
2 parents 606bf11 + de027a8 commit 6cde5c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/doc/guide-pointers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ As being similar to this C code:
505505
{
506506
int *x;
507507
x = (int *)malloc(sizeof(int));
508+
*x = 5;
508509
509510
// stuff happens
510511

0 commit comments

Comments
 (0)