We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7488558 commit 645a7b1Copy full SHA for 645a7b1
src/items/functions.md
@@ -290,12 +290,12 @@ responsibility to ensure that.
290
[Outer attributes][attributes] are allowed on functions. [Inner
291
attributes][attributes] are allowed directly after the `{` inside its [block].
292
293
-This example shows an inner attribute on a function. The function will only be
294
-available while running tests.
+This example shows an inner attribute on a function. The function is documented
+with just the word "Example".
295
296
```rust
297
-fn test_only() {
298
- #![doc("Example")]
+fn documented() {
+ #![doc = "Example"]
299
}
300
```
301
0 commit comments