about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWill Crichton <wcrichto@cs.stanford.edu>2021-10-19 20:08:30 -0700
committerWill Crichton <wcrichto@cs.stanford.edu>2021-10-19 20:08:30 -0700
commit8f80d86d85ca88e69f423eae88db3adc1e277f24 (patch)
tree5160d8585e6f605946782c4c7f5f5fd4862df331
parent24a71cbdd7bd1f27029334eacc247e70d21b5765 (diff)
downloadrust-8f80d86d85ca88e69f423eae88db3adc1e277f24.tar.gz
rust-8f80d86d85ca88e69f423eae88db3adc1e277f24.zip
Small scrape-example fixes
-rw-r--r--src/doc/rustdoc/src/unstable-features.md2
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css7
2 files changed, 7 insertions, 2 deletions
diff --git a/src/doc/rustdoc/src/unstable-features.md b/src/doc/rustdoc/src/unstable-features.md
index ea8589116b9..c701a0e2919 100644
--- a/src/doc/rustdoc/src/unstable-features.md
+++ b/src/doc/rustdoc/src/unstable-features.md
@@ -462,7 +462,7 @@ This option, combined with `--scrape-examples-target-crate` and `--scrape-exampl
 
 ```bash
 $ rustdoc examples/ex.rs -Z unstable-options \
-    --extern foobar=target/deps/libfoobar.rmeta
+    --extern foobar=target/deps/libfoobar.rmeta \
     --scrape-examples-target-crate foobar \
     --scrape-examples-output-path output.calls
 $ rustdoc src/lib.rs -Z unstable-options --with-examples output.calls
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index 49bdb2455ac..ae97c86762c 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -453,11 +453,16 @@ nav.sub {
 	text-decoration: underline;
 }
 
-.rustdoc:not(.source) .example-wrap > pre:not(.line-numbers) {
+.rustdoc:not(.source) .example-wrap > pre:not(.line-number) {
 	width: 100%;
 	overflow-x: auto;
 }
 
+.rustdoc:not(.source) .example-wrap > pre.line-numbers {
+	width: auto;
+	overflow-x: visible;
+}
+
 .rustdoc .example-wrap > pre {
 	margin: 0;
 }