@@ -417,11 +417,20 @@ fn documented() {
417417> Except for lints, it is idiomatic to only use outer attributes on function items.
418418
419419r[ items.fn.attributes.builtin-attributes]
420- The attributes that have meaning on a function are [ ` cfg ` ] , [ ` cfg_attr ` ] , [ ` deprecated ` ] ,
421- [ ` doc ` ] , [ ` export_name ` ] , [ ` link_section ` ] , [ ` no_mangle ` ] , [ the lint check
422- attributes] , [ ` must_use ` ] , [ the procedural macro attributes] , [ the testing
423- attributes] , and [ the optimization hint attributes] . Functions also accept
424- attributes macros.
420+ The attributes that have meaning on a function are:
421+
422+ - [ ` cfg_attr ` ]
423+ - [ ` cfg ` ]
424+ - [ ` deprecated ` ]
425+ - [ ` doc ` ]
426+ - [ ` export_name ` ]
427+ - [ ` link_section ` ]
428+ - [ ` must_use ` ]
429+ - [ ` no_mangle ` ]
430+ - [ Lint check attributes]
431+ - [ Optimization hint attributes]
432+ - [ Procedural macro attributes]
433+ - [ Testing attributes]
425434
426435r[ items.fn.param-attributes]
427436## Attributes on function parameters
@@ -471,10 +480,10 @@ fn foo_oof(#[some_inert_attribute] arg: u8) {
471480[ attributes ] : ../attributes.md
472481[ `cfg` ] : ../conditional-compilation.md#the-cfg-attribute
473482[ `cfg_attr` ] : ../conditional-compilation.md#the-cfg_attr-attribute
474- [ the lint check attributes] : ../attributes/diagnostics.md#lint-check-attributes
475- [ the procedural macro attributes] : ../procedural-macros.md
476- [ the testing attributes] : ../attributes/testing.md
477- [ the optimization hint attributes] : ../attributes/codegen.md#optimization-hints
483+ [ lint check attributes ] : ../attributes/diagnostics.md#lint-check-attributes
484+ [ procedural macro attributes ] : ../procedural-macros.md#attribute-macros
485+ [ testing attributes ] : ../attributes/testing.md
486+ [ optimization hint attributes ] : ../attributes/codegen.md#optimization-hints
478487[ `deprecated` ] : ../attributes/diagnostics.md#the-deprecated-attribute
479488[ `doc` ] : ../../rustdoc/the-doc-attribute.html
480489[ `must_use` ] : ../attributes/diagnostics.md#the-must_use-attribute
0 commit comments