fix doc tests

This commit is contained in:
BenjaminBrienen 2025-02-27 00:59:13 +01:00
parent bd7375a58f
commit b19ef6b046
37 changed files with 75 additions and 61 deletions

View file

@ -25,7 +25,7 @@ pub fn ancestors_at_offset(
/// imprecise: if the cursor is strictly between two nodes of the desired type,
/// as in
///
/// ```no_run
/// ```ignore
/// struct Foo {}|struct Bar;
/// ```
///

View file

@ -72,9 +72,9 @@ impl IndentLevel {
}
/// XXX: this intentionally doesn't change the indent of the very first token.
/// Ie, in something like
/// For example, in something like:
/// ```
/// fn foo() {
/// fn foo() -> i32 {
/// 92
/// }
/// ```