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