Skip to content

Commit 7a13c98

Browse files
committed
Rust: address comments
1 parent 348dc99 commit 7a13c98

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

rust/schema/annotations.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ class _:
11421142
@annotate(ForTypeRepr)
11431143
class _:
11441144
"""
1145-
A higher-ranked trait bound(HRTB) type.
1145+
A higher-ranked trait bound.
11461146
11471147
For example:
11481148
```rust
@@ -1354,7 +1354,6 @@ class _:
13541354
For example:
13551355
```rust
13561356
println!("Hello, world!");
1357-
//^^^^^^^
13581357
```
13591358
"""
13601359
macro_call_expansion: optional[AstNode] | child | rust.detach
@@ -1495,7 +1494,7 @@ class _:
14951494
14961495
For example:
14971496
```rust
1498-
foo();
1497+
foo();
14991498
//^^^
15001499
```
15011500
"""
@@ -1549,7 +1548,6 @@ class _:
15491548
For example:
15501549
```rust
15511550
(x + y)
1552-
//^^^^^
15531551
```
15541552
"""
15551553

@@ -1830,7 +1828,7 @@ class _:
18301828
A Struct. For example:
18311829
```rust
18321830
struct Point {
1833-
x: i32,
1831+
x: i32,
18341832
y: i32,
18351833
}
18361834
```
@@ -1848,9 +1846,9 @@ class _:
18481846
println!("{} {}!", "Hello", "world");
18491847
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18501848
```
1851-
```
1849+
```rust
18521850
macro_rules! foo { ($x:expr) => { $x + 1 }; }
1853-
// ^^^^^^^^^^^^^^^^^^^^^^^
1851+
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18541852
```
18551853
"""
18561854

@@ -2028,7 +2026,7 @@ class _:
20282026
@annotate(UseTree)
20292027
class _:
20302028
"""
2031-
A `use` tree, ie the part after the `use` keyword in a `use` statement. For example:
2029+
A `use` tree, that is, the part after the `use` keyword in a `use` statement. For example:
20322030
```rust
20332031
use std::collections::HashMap;
20342032
use std::collections::*;
@@ -2046,7 +2044,7 @@ class _:
20462044
For example:
20472045
```rust
20482046
use std::{fs, io};
2049-
// ^^^^^^^
2047+
// ^^^^^^^^
20502048
```
20512049
"""
20522050

@@ -2084,7 +2082,7 @@ class _:
20842082
20852083
For example:
20862084
```rust
2087-
pub struct S;
2085+
pub struct S;
20882086
//^^^
20892087
```
20902088
"""

0 commit comments

Comments
 (0)