mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-08 19:43:11 +00:00
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
This commit is contained in:
parent
54f774bfeb
commit
0d9a6d246a
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue