Skip to content

Commit

Permalink
fix variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
Trashtalk217 authored Dec 9, 2024
1 parent c23e146 commit ab5706d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/stress_tests/many_components.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ pub fn main() {
.unwrap_or_else(|| {
println!(
"No valid number of entities provided, using default {}",
default_num_entities
DEFAULT_NUM_ENTITIES
);
default_num_entities
DEFAULT_NUM_ENTITIES
});
let num_components = std::env::args()
.nth(2)
Expand All @@ -177,19 +177,19 @@ pub fn main() {
.unwrap_or_else(|| {
println!(
"No valid number of components provided (>= 10), using default {}",
default_num_components
DEFAULT_NUM_COMPONENTS
);
default_num_components
DEFAULT_NUM_COMPONENTS
});
let num_systems = std::env::args()
.nth(3)
.and_then(|string| string.parse::<u32>().ok())
.unwrap_or_else(|| {
println!(
"No valid number of systems provided, using default {}",
default_num_systems
DEFAULT_NUM_SYSTEMS
);
default_num_systems
DEFAULT_NUM_SYSTEMS
});

stress_test(num_entities, num_components, num_systems);
Expand Down

0 comments on commit ab5706d

Please sign in to comment.