Skip to content

Commit af61616

Browse files
authored
Unrolled build for #149804
Rollup merge of #149804 - xiaolinny:main, r=lcnr chore: fix some minor issues in the comments fix some minor issues in the comments
2 parents 31010ca + d1d1181 commit af61616

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

library/std/src/io/buffered/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ fn test_buffered_reader_stream_position_panic() {
172172
// cause internal buffer to be filled but read only partially
173173
let mut buffer = [0, 0];
174174
assert!(reader.read_exact(&mut buffer).is_ok());
175-
// rewinding the internal reader will cause buffer to loose sync
175+
// rewinding the internal reader will cause buffer to lose sync
176176
let inner = reader.get_mut();
177177
assert!(inner.seek(SeekFrom::Start(0)).is_ok());
178178
// overflow when subtracting the remaining buffer size from current position

src/doc/rustc-dev-guide/src/rustdoc-internals/rustdoc-json-test-suite.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This page is specifically about the test suite named `rustdoc-json`, which tests
44
For other test suites used for testing rustdoc, see [§Rustdoc test suites](../tests/compiletest.md#rustdoc-test-suites).
55

66
Tests are run with compiletest, and have access to the usual set of [directives](../tests/directives.md).
7-
Frequenly used directives here are:
7+
Frequently used directives here are:
88

99
- [`//@ aux-build`][aux-build] to have dependencies.
1010
- `//@ edition: 2021` (or some other edition).
@@ -23,8 +23,8 @@ Also, talk about how it works
2323

2424
## jsondocck
2525

26-
[jsondocck] processes direcives given in comments, to assert that the values in the output are expected.
27-
It's alot like [htmldocck](./rustdoc-test-suite.md) in that way.
26+
[jsondocck] processes directives given in comments, to assert that the values in the output are expected.
27+
It's a lot like [htmldocck](./rustdoc-test-suite.md) in that way.
2828

2929
It uses [JSONPath] as a query language, which takes a path, and returns a *list* of values that that path is said to match to.
3030

@@ -48,7 +48,7 @@ These are defined in [`directive.rs`].
4848
Values can be either JSON values, or variables.
4949

5050
- JSON values are JSON literals, e.g. `true`, `"string"`, `{"key": "value"}`.
51-
These often need to be quoted using `'`, to be processed as 1 value. See [§Argument spliting](#argument-spliting)
51+
These often need to be quoted using `'`, to be processed as 1 value. See [§Argument splitting](#argument-splitting)
5252
- Variables can be used to store the value in one path, and use it in later queries.
5353
They are set with the `//@ set <name> = <path>` directive, and accessed with `$<name>`
5454

@@ -57,7 +57,7 @@ Values can be either JSON values, or variables.
5757
//@ is $.some.other.path $foo
5858
```
5959

60-
### Argument spliting
60+
### Argument splitting
6161

6262
Arguments to directives are split using the [shlex] crate, which implements POSIX shell escaping.
6363
This is because both `<path>` and `<value>` arguments to [directives](#directives) frequently have both

tests/ui/repeat-expr/copy-check-deferred-after-fallback.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Test when deferring repeat expr copy checks to end of typechecking whether they're
22
// checked before integer fallback occurs or not. We accomplish this by having a repeat
3-
// count that can only be inferred after integer fallback has occured. This test will
3+
// count that can only be inferred after integer fallback has occurred. This test will
44
// pass if we were to check repeat exprs after integer fallback.
55

66
use std::marker::PhantomData;

0 commit comments

Comments
 (0)