diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-06-21 14:03:08 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-06-24 11:08:41 +0200 |
| commit | 1b67035579fc6157ca2f3fb8b7e6071ff6d888bc (patch) | |
| tree | e53cb08e1dfa396dd2abd4ffbb91aa6826a463d9 /tests/rustdoc/line-breaks.rs | |
| parent | d3ec92e16e7e78c273c0f996cad5122ce5a6cdd6 (diff) | |
| download | rust-1b67035579fc6157ca2f3fb8b7e6071ff6d888bc.tar.gz rust-1b67035579fc6157ca2f3fb8b7e6071ff6d888bc.zip | |
Update `tests/rustdoc` to new test syntax
Diffstat (limited to 'tests/rustdoc/line-breaks.rs')
| -rw-r--r-- | tests/rustdoc/line-breaks.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/rustdoc/line-breaks.rs b/tests/rustdoc/line-breaks.rs index 0f760d51973..b82894ab68f 100644 --- a/tests/rustdoc/line-breaks.rs +++ b/tests/rustdoc/line-breaks.rs @@ -3,7 +3,7 @@ use std::fmt::Display; use std::ops::Add; -// @matches foo/fn.function_with_a_really_long_name.html '//*[@class="rust item-decl"]//code' "\ +//@ matches foo/fn.function_with_a_really_long_name.html '//*[@class="rust item-decl"]//code' "\ // function_with_a_really_long_name\(\n\ // \ parameter_one: i32,\n\ // \ parameter_two: i32,\n\ @@ -12,13 +12,13 @@ pub fn function_with_a_really_long_name(parameter_one: i32, parameter_two: i32) Some(parameter_one + parameter_two) } -// @matches foo/fn.short_name.html '//*[@class="rust item-decl"]//code' \ +//@ matches foo/fn.short_name.html '//*[@class="rust item-decl"]//code' \ // "short_name\(param: i32\) -> i32$" pub fn short_name(param: i32) -> i32 { param + 1 } -// @matches foo/fn.where_clause.html '//*[@class="rust item-decl"]//code' "\ +//@ matches foo/fn.where_clause.html '//*[@class="rust item-decl"]//code' "\ // where_clause<T, U>\(param_one: T, param_two: U\)where\n\ // \ T: Add<U> \+ Display \+ Copy,\n\ // \ U: Add<T> \+ Display \+ Copy,\n\ |
