Skip to content

Commit a707527

Browse files
committed
Address review comments in annotations.py
1 parent 7378fbc commit a707527

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

rust/schema/annotations.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -231,16 +231,15 @@ class _:
231231
@annotate(CallExpr, cfg=True)
232232
class _:
233233
"""
234-
NOTE: Consider using `Call` instead, as that includes all kinds of calls to
235-
functions, and excludes instantiations of tuple structs and tuple enum variants.
234+
NOTE: Consider using `Call` instead, as that excludes call expressions that are
235+
instantiations of tuple structs and tuple variants.
236236
237237
A call expression. For example:
238238
```rust
239239
foo(42);
240240
foo::<u32, u64>(42);
241241
foo[0](42);
242-
foo(1) = 4;
243-
Option::Some(42); // tuple enum variant instantiation
242+
Option::Some(42); // tuple variant instantiation
244243
```
245244
"""
246245

@@ -249,8 +248,8 @@ class _:
249248
class _:
250249
"""
251250
NOTE: Consider using `MethodCall` instead, as that also includes calls to methods using
252-
function call syntax (such as `Foo::method(x)`), operator calls (such as `x + y`), and
253-
indexing calls (such as `x[y]`).
251+
call syntax (such as `Foo::method(x)`), operation syntax (such as `x + y`), and
252+
indexing syntax (such as `x[y]`).
254253
255254
A method call expression. For example:
256255
```rust
@@ -1921,7 +1920,7 @@ class _:
19211920
@annotate(TupleField)
19221921
class _:
19231922
"""
1924-
A field in a tuple struct or tuple enum variant.
1923+
A field in a tuple struct or tuple variant.
19251924
19261925
For example:
19271926
```rust
@@ -1934,7 +1933,7 @@ class _:
19341933
@annotate(TupleFieldList)
19351934
class _:
19361935
"""
1937-
A list of fields in a tuple struct or tuple enum variant.
1936+
A list of fields in a tuple struct or tuple variant.
19381937
19391938
For example:
19401939
```rust

0 commit comments

Comments
 (0)