about summary refs log tree commit diff
path: root/src/doc/rustdoc
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2024-09-27 18:03:54 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2024-09-28 18:38:10 +0200
commitcdf2a8ffc5f8af31529b44964457a7a7e9979680 (patch)
tree806a03e54752ea346f27edf76fb3cbc101d36664 /src/doc/rustdoc
parent612796c42077605fdd3c6f7dda05745d8f4dc4d8 (diff)
downloadrust-cdf2a8ffc5f8af31529b44964457a7a7e9979680.tar.gz
rust-cdf2a8ffc5f8af31529b44964457a7a7e9979680.zip
Rename `standalone` doctest attribute into `standalone-crate`
Diffstat (limited to 'src/doc/rustdoc')
-rw-r--r--src/doc/rustdoc/src/write-documentation/documentation-tests.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustdoc/src/write-documentation/documentation-tests.md b/src/doc/rustdoc/src/write-documentation/documentation-tests.md
index 7ed2e9720fe..94ef34ea5a5 100644
--- a/src/doc/rustdoc/src/write-documentation/documentation-tests.md
+++ b/src/doc/rustdoc/src/write-documentation/documentation-tests.md
@@ -414,11 +414,11 @@ In some cases, doctests cannot be merged. For example, if you have:
 The problem with this code is that, if you change any other doctests, it'll likely break when
 runing `rustdoc --test`, making it tricky to maintain.
 
-This is where the `standalone` attribute comes in: it tells `rustdoc` that a doctest
+This is where the `standalone-crate` attribute comes in: it tells `rustdoc` that a doctest
 should not be merged with the others. So the previous code should use it:
 
 ```rust
-//! ```standalone
+//! ```standalone-crate
 //! let location = std::panic::Location::caller();
 //! assert_eq!(location.line(), 4);
 //! ```