diff --git a/rust_dev_preview/examples/auto-scaling/src/scenario.rs b/rust_dev_preview/examples/auto-scaling/src/scenario.rs index d4fc772e7a3..27529823b53 100644 --- a/rust_dev_preview/examples/auto-scaling/src/scenario.rs +++ b/rust_dev_preview/examples/auto-scaling/src/scenario.rs @@ -387,7 +387,7 @@ impl AutoScalingScenario { // snippet-end:[rust.autoscaling.scenario.scale_desired_capacity] pub async fn scale_group_to_zero(&self) -> Result<(), anyhow::Error> { - // snippet-start:[rust.autoscaling.scenario.enable_metrics_collection] + // snippet-start:[rust.autoscaling.scenario.disable_metrics_collection] // If this fails it's fine, just means there are extra cloudwatch metrics events for the scale-down. let _ = self .autoscaling @@ -395,7 +395,7 @@ impl AutoScalingScenario { .auto_scaling_group_name(self.auto_scaling_group_name.clone()) .send() .await; - // snippet-end:[rust.autoscaling.scenario.enable_metrics_collection] + // snippet-end:[rust.autoscaling.scenario.disable_metrics_collection] // 12. DeleteAutoScalingGroup (to delete the group you must stop all instances): // UpdateAutoScalingGroup with MinSize=0