From 0d9a6d246a75a5ade7d161c44c44594eb8f19527 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Wed, 31 Jul 2024 17:36:26 -0400 Subject: [PATCH] collab: Fix spelling of "cancellation" (#15569) English is hard. In US English the forms of "cancel" are as follows: - `cancel` - `cancels` - `canceling` - `canceled` - `cancellation` Note that `cancellation` _does_ use the double `l`, which all the rest of the forms do not. Release Notes: - N/A --- crates/collab/src/api/billing.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/collab/src/api/billing.rs b/crates/collab/src/api/billing.rs index bd8890019b..46406e0e38 100644 --- a/crates/collab/src/api/billing.rs +++ b/crates/collab/src/api/billing.rs @@ -171,8 +171,8 @@ async fn create_billing_subscription( enum ManageSubscriptionIntent { /// The user intends to cancel their subscription. Cancel, - /// The user intends to stop the cancelation of their subscription. - StopCancelation, + /// The user intends to stop the cancellation of their subscription. + StopCancellation, } #[derive(Debug, Deserialize)] @@ -221,7 +221,7 @@ async fn manage_billing_subscription( .await? .ok_or_else(|| anyhow!("subscription not found"))?; - if body.intent == ManageSubscriptionIntent::StopCancelation { + if body.intent == ManageSubscriptionIntent::StopCancellation { let subscription_id = SubscriptionId::from_str(&subscription.stripe_subscription_id) .context("failed to parse subscription ID")?; @@ -273,7 +273,7 @@ async fn manage_billing_subscription( ), ..Default::default() }, - ManageSubscriptionIntent::StopCancelation => unreachable!(), + ManageSubscriptionIntent::StopCancellation => unreachable!(), }; let mut params = CreateBillingPortalSession::new(customer_id);