about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/doc/rustdoc/src/write-documentation/documentation-tests.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/doc/rustdoc/src/write-documentation/documentation-tests.md b/src/doc/rustdoc/src/write-documentation/documentation-tests.md
index 87e42fe1d39..077b02d603d 100644
--- a/src/doc/rustdoc/src/write-documentation/documentation-tests.md
+++ b/src/doc/rustdoc/src/write-documentation/documentation-tests.md
@@ -442,6 +442,15 @@ struct Foo;
 
 This doctest will not be built for targets such as `x86_64-unknown-linux-gnu`.
 
+Multiple ignore attributes can be specified to ignore multiple targets:
+
+```rust
+/// ```ignore-x86_64,ignore-windows
+/// assert!(2 == 2);
+/// ```
+struct Foo;
+```
+
 If you want to preserve backwards compatibility for older versions of rustdoc,
 you can specify both `ignore` and `ignore-`, such as: