| ... | @@ -1370,7 +1370,7 @@ mem.eql(u8, pattern, "ababab"){#endsyntax#}</pre> | ... | @@ -1370,7 +1370,7 @@ mem.eql(u8, pattern, "ababab"){#endsyntax#}</pre> |
| 1370 | <td> | 1370 | <td> |
| 1371 | <pre>{#syntax#}const x: u32 = 1234; | 1371 | <pre>{#syntax#}const x: u32 = 1234; |
| 1372 | const ptr = &x; | 1372 | const ptr = &x; |
| 1373 | x.* == 1234{#endsyntax#}</pre> | 1373 | ptr.* == 1234{#endsyntax#}</pre> |
| 1374 | </td> | 1374 | </td> |
| 1375 | </tr> | 1375 | </tr> |
| 1376 | <tr> | 1376 | <tr> |
| ... | @@ -1384,7 +1384,7 @@ x.* == 1234{#endsyntax#}</pre> | ... | @@ -1384,7 +1384,7 @@ x.* == 1234{#endsyntax#}</pre> |
| 1384 | <td> | 1384 | <td> |
| 1385 | <pre>{#syntax#}const x: u32 = 1234; | 1385 | <pre>{#syntax#}const x: u32 = 1234; |
| 1386 | const ptr = &x; | 1386 | const ptr = &x; |
| 1387 | x.* == 1234{#endsyntax#}</pre> | 1387 | ptr.* == 1234{#endsyntax#}</pre> |
| 1388 | </td> | 1388 | </td> |
| 1389 | </tr> | 1389 | </tr> |
| 1390 | <tr> | 1390 | <tr> |
| ... | @@ -1603,7 +1603,7 @@ test "address of syntax" { | ... | @@ -1603,7 +1603,7 @@ test "address of syntax" { |
| 1603 | const x: i32 = 1234; | 1603 | const x: i32 = 1234; |
| 1604 | const x_ptr = &x; | 1604 | const x_ptr = &x; |
| 1605 | | 1605 | |
| 1606 | // Deference a pointer: | 1606 | // Dereference a pointer: |
| 1607 | assert(x_ptr.* == 1234); | 1607 | assert(x_ptr.* == 1234); |
| 1608 | | 1608 | |
| 1609 | // When you get the address of a const variable, you get a const pointer to a single item. | 1609 | // When you get the address of a const variable, you get a const pointer to a single item. |