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.
2 parents e4e4972 + 645a7b1 commit 762f9e9Copy full SHA for 762f9e9
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
- #![test]
+fn documented() {
+ #![doc = "Example"]
299
}
300
```
301
0 commit comments