Skip to content

Commit 6c9890e

Browse files
committed
Better link to repr attribute from structs page
Before it was linking to `attributes.html#ffi-attributes`, which links to `type-layout.html#representations`. This saves a click for people that want to go straight to the `repr` documentation.
1 parent 8865a78 commit 6c9890e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/items/structs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ let c = [Cookie, Cookie {}, Cookie, Cookie {}];
7878
The precise memory layout of a struct is not specified. One can specify a
7979
particular layout using the [`repr` attribute].
8080

81-
[`repr` attribute]: attributes.html#ffi-attributes
81+
[`repr` attribute]: type-layout.html#representations
8282

8383
[_OuterAttribute_]: attributes.html
8484
[IDENTIFIER]: identifiers.html

0 commit comments

Comments
 (0)