-
Notifications
You must be signed in to change notification settings - Fork 888
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure space after binary exprs that ends with
.
before range expr
Removing the space would lead to compilation errors.
- Loading branch information
1 parent
35c1b7d
commit 73c8149
Showing
4 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fn float_range_tests() { | ||
self.coords.x -= rng.gen_range(-self.radius / 2. .. self.radius / 2.); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
fn float_range_tests() { | ||
let _range = 3. / 2. ..4.; | ||
let _range = 3.0 / 2. ..4.0; | ||
let _range = 3.0 / 2.0..4.0; | ||
let _range = 3. / 2.0..4.0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fn float_range_tests() { | ||
self.coords.x -= rng.gen_range(-self.radius / 2. ..self.radius / 2.); | ||
} |