Skip to content

Commit dcf4991

Browse files
committed
Fix formatting for description rustdoc UI tests
1 parent 8b3b1c9 commit dcf4991

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

src/test/rustdoc/description.rs

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
#![crate_name = "foo"]
22
//! # Description test crate
33
//!
4-
//! This is the contents of the test crate docstring. It should not show up in the description.
4+
//! This is the contents of the test crate docstring.
5+
//! It should not show up in the description.
56
6-
// @matches 'foo/index.html' '//meta[@name="description"]/@content' 'Description test crate'
7+
// @matches 'foo/index.html' '//meta[@name="description"]/@content' \
8+
// 'Description test crate'
79

8-
// @matches 'foo/foo_mod/index.html' '//meta[@name="description"]/@content' 'First paragraph description.'
10+
// @matches 'foo/foo_mod/index.html' '//meta[@name="description"]/@content' \
11+
// 'First paragraph description.'
912
/// First paragraph description.
1013
///
1114
/// Second paragraph should not show up.
1215
pub mod foo_mod {
1316
pub struct __Thing {}
1417
}
1518

16-
// @matches 'foo/fn.foo_fn.html' '//meta[@name="description"]/@content' 'Only paragraph.'
19+
// @matches 'foo/fn.foo_fn.html' '//meta[@name="description"]/@content' \
20+
// 'Only paragraph.'
1721
/// Only paragraph.
1822
pub fn foo_fn() {}
19-

src/test/rustdoc/description_default.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
#![crate_name = "foo"]
22

3-
// @matches 'foo/index.html' '//meta[@name="description"]/@content' 'API documentation for the Rust `foo` crate.'
3+
// @matches 'foo/index.html' '//meta[@name="description"]/@content' \
4+
// 'API documentation for the Rust `foo` crate.'
45

5-
// @matches 'foo/foo_mod/index.html' '//meta[@name="description"]/@content' 'API documentation for the Rust `foo_mod` mod in crate `foo`.'
6+
// @matches 'foo/foo_mod/index.html' '//meta[@name="description"]/@content' \
7+
// 'API documentation for the Rust `foo_mod` mod in crate `foo`.'
68
pub mod foo_mod {
79
pub struct __Thing {}
810
}
911

10-
// @matches 'foo/fn.foo_fn.html' '//meta[@name="description"]/@content' 'API documentation for the Rust `foo_fn` fn in crate `foo`.'
12+
// @matches 'foo/fn.foo_fn.html' '//meta[@name="description"]/@content' \
13+
// 'API documentation for the Rust `foo_fn` fn in crate `foo`.'
1114
pub fn foo_fn() {}
12-

0 commit comments

Comments
 (0)