Skip to content

Commit 6d8ab85

Browse files
ehusstraviscross
authored andcommitted
Rename "Attribute macros" section
This renames this section to follow the attribute template. Although I like the old title, since it describes what it does, I would prefer to not make exceptions and stay consistent.
1 parent ef9d863 commit 6d8ab85

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/procedural-macros.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,3 +428,17 @@ their equivalent `#[doc = r"str"]` attributes when passed to macros.
428428
[type expressions]: types.md#type-expressions
429429
[type]: types.md
430430
[union]: items/unions.md
431+
432+
<script>
433+
(function() {
434+
var fragments = {
435+
"#attribute-macros": "procedural-macros.html#the-proc_macro_attribute-attribute",
436+
};
437+
var target = fragments[window.location.hash];
438+
if (target) {
439+
var url = window.location.toString();
440+
var base = url.substring(0, url.lastIndexOf('/'));
441+
window.location.replace(base + "/" + target);
442+
}
443+
})();
444+
</script>

0 commit comments

Comments
 (0)