From 1ca78e39e4497821df352e0343132228e08894c3 Mon Sep 17 00:00:00 2001 From: Matt Stancliff Date: Fri, 22 Mar 2019 13:57:00 -0400 Subject: [PATCH] Fix typos around pointer usage --- doc/langref.html.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index 5779b75e8e..d1e00348b2 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -1370,7 +1370,7 @@ mem.eql(u8, pattern, "ababab"){#endsyntax#}
{#syntax#}const x: u32 = 1234;
 const ptr = &x;
-x.* == 1234{#endsyntax#}
+ptr.* == 1234{#endsyntax#} @@ -1384,7 +1384,7 @@ x.* == 1234{#endsyntax#}
{#syntax#}const x: u32 = 1234;
 const ptr = &x;
-x.* == 1234{#endsyntax#}
+ptr.* == 1234{#endsyntax#} @@ -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.