Skip to content

Commit 557ffa1

Browse files
committed
Compiletest: Simplify {Html,Json}DocCk directive handling
1 parent 8042587 commit 557ffa1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rustdoc-internals/rustdoc-test-suite.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ Similar to shell commands,
5555
directives can extend across multiple lines if their last char is `\`.
5656
In this case, the start of the next line should be `//`, with no `@`.
5757

58+
Similar to compiletest directives, besides a space you can also use a colon `:` to separate
59+
the directive name and the arguments, however a space is preferred for HtmlDocCk directives.
60+
5861
Use the special string `{{channel}}` in XPaths, `PATTERN` arguments and [snapshot files](#snapshot)
5962
if you'd like to refer to the URL `https://doc.rust-lang.org/CHANNEL` where `CHANNEL` refers to the
6063
current release channel (e.g, `stable` or `nightly`).

0 commit comments

Comments
 (0)