From 7a13c981b835da57b59db63447440f4b78fad685 Mon Sep 17 00:00:00 2001 From: Arthur Baars Date: Wed, 4 Jun 2025 11:01:13 +0200 Subject: [PATCH] Rust: address comments --- rust/schema/annotations.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/rust/schema/annotations.py b/rust/schema/annotations.py index 98245cd24a4..c6ab581d7ca 100644 --- a/rust/schema/annotations.py +++ b/rust/schema/annotations.py @@ -1142,7 +1142,7 @@ class _: @annotate(ForTypeRepr) class _: """ - A higher-ranked trait bound(HRTB) type. + A higher-ranked trait bound. For example: ```rust @@ -1354,7 +1354,6 @@ class _: For example: ```rust println!("Hello, world!"); - //^^^^^^^ ``` """ macro_call_expansion: optional[AstNode] | child | rust.detach @@ -1495,7 +1494,7 @@ class _: For example: ```rust - foo(); + foo(); //^^^ ``` """ @@ -1549,7 +1548,6 @@ class _: For example: ```rust (x + y) - //^^^^^ ``` """ @@ -1830,7 +1828,7 @@ class _: A Struct. For example: ```rust struct Point { - x: i32, + x: i32, y: i32, } ``` @@ -1848,9 +1846,9 @@ class _: println!("{} {}!", "Hello", "world"); // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ``` - ``` + ```rust macro_rules! foo { ($x:expr) => { $x + 1 }; } - // ^^^^^^^^^^^^^^^^^^^^^^^ + // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ``` """ @@ -2028,7 +2026,7 @@ class _: @annotate(UseTree) class _: """ - A `use` tree, ie the part after the `use` keyword in a `use` statement. For example: + A `use` tree, that is, the part after the `use` keyword in a `use` statement. For example: ```rust use std::collections::HashMap; use std::collections::*; @@ -2046,7 +2044,7 @@ class _: For example: ```rust use std::{fs, io}; - // ^^^^^^^ + // ^^^^^^^^ ``` """ @@ -2084,7 +2082,7 @@ class _: For example: ```rust - pub struct S; + pub struct S; //^^^ ``` """