Skip to content

Commit 3eb40c4

Browse files
committed
Fix typo
1 parent 99626a3 commit 3eb40c4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Here are some details that are relevant to this test suite specifically:
151151
* While you can use both `//@ compile-flags` and `//@ doc-flags` to pass flags to `rustdoc`,
152152
prefer to user the latter to show intent. The former is meant for `rustc`.
153153
* Add `//@ build-aux-docs` to the test file that has auxiliary crates to not only compile the
154-
auxiliaries with `rustc` but to also document them with `rustdoc`
154+
auxiliaries with `rustc` but to also document them with `rustdoc`.
155155

156156
## Caveats
157157

@@ -161,8 +161,9 @@ It's not unusual that the *shape* of the generated HTML document tree changes fr
161161
This includes for example renamings of CSS classes.
162162

163163
Whenever that happens, *positive* checks will either continue to match the intended element /
164-
attribute / text if their XPath expression is general / loose enough and thus test the correct thing
165-
or they won't in which case they would fail forcing the author of the change tolook at them.
164+
attribute / text (if their XPath expression is general / loose enough) and
165+
thus continue to test the correct thing or they won't in which case they would fail thereby
166+
forcing the author of the change to look at them.
166167

167168
Compare that to *negative* checks (e.g., `//@ !has PATH XPATH PATTERN`) which won't fail if their
168169
XPath expression "no longer" matches. The author who changed "the shape" thus won't get notified and

0 commit comments

Comments
 (0)