guide-pointers.md: C sample code should match the Rust version.
Fix rust-lang/rust#17255
This commit is contained in:
parent
c669411afa
commit
de027a8b1f
@ -505,6 +505,7 @@ As being similar to this C code:
|
||||
{
|
||||
int *x;
|
||||
x = (int *)malloc(sizeof(int));
|
||||
*x = 5;
|
||||
|
||||
// stuff happens
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user