Skip to content
Permalink
Browse files
Fix typos around pointer usage
  • Loading branch information
mattsta authored and andrewrk committed Mar 22, 2019
1 parent 127bb12 commit 1ca78e39e4497821df352e0343132228e08894c3
Showing with 3 additions and 3 deletions.
  1. +3 −3 doc/langref.html.in
@@ -1370,7 +1370,7 @@ mem.eql(u8, pattern, "ababab"){#endsyntax#}</pre>
<td>
<pre>{#syntax#}const x: u32 = 1234;
const ptr = &x;
x.* == 1234{#endsyntax#}</pre>
ptr.* == 1234{#endsyntax#}</pre>
</td>
</tr>
<tr>
@@ -1384,7 +1384,7 @@ x.* == 1234{#endsyntax#}</pre>
<td>
<pre>{#syntax#}const x: u32 = 1234;
const ptr = &x;
x.* == 1234{#endsyntax#}</pre>
ptr.* == 1234{#endsyntax#}</pre>
</td>
</tr>
<tr>
@@ -1603,7 +1603,7 @@ test "address of syntax" {
const x: i32 = 1234;
const x_ptr = &x;

// Deference a pointer:
// Dereference a pointer:
assert(x_ptr.* == 1234);

// When you get the address of a const variable, you get a const pointer to a single item.

0 comments on commit 1ca78e3

Please sign in to comment.