about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2024-08-12 14:22:05 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2024-08-12 14:40:19 +0200
commit63ab7b59573a4e8d660b4c0235af6b8789c3753e (patch)
treebce1e89d9c320c5de9881f4f8f9402462f3d1d34
parent7882575a8cfaa322dddb1fcf3261b470ca485ead (diff)
downloadrust-63ab7b59573a4e8d660b4c0235af6b8789c3753e.tar.gz
rust-63ab7b59573a4e8d660b4c0235af6b8789c3753e.zip
Add documentation for `-o -`
-rw-r--r--src/doc/rustdoc/src/unstable-features.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/doc/rustdoc/src/unstable-features.md b/src/doc/rustdoc/src/unstable-features.md
index 39f24a13143..ebbe141b6f5 100644
--- a/src/doc/rustdoc/src/unstable-features.md
+++ b/src/doc/rustdoc/src/unstable-features.md
@@ -515,6 +515,9 @@ pub fn no_documentation() {}
 
 Note that the third item is the crate root, which in this case is undocumented.
 
+If you want the JSON output to be displayed on `stdout` instead of having a file generated, you can
+use `-o -`.
+
 ### `-w`/`--output-format`: output format
 
 `--output-format json` emits documentation in the experimental