Skip to content

Conversation

A4-Tacks
Copy link
Contributor

Flips operands of a range expression.

Example

fn main() {
    let _ = 90..$02;
}

->

fn main() {
    let _ = 2..90;
}

fn main() {
    let _ = 90..$0;
}

->

fn main() {
    let _ = ..90;
}

Flips operands of a range expression.

Example
---
```rust
fn main() {
    let _ = 90..$02;
}
```
->
```rust
fn main() {
    let _ = 2..90;
}
```
---
```rust
fn main() {
    let _ = 90..$0;
}
```
->
```rust
fn main() {
    let _ = ..90;
}
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants