Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

collab: Fix spelling of "cancellation" (#15569)

Marshall Bowers0d9a6d246a75
diff --git a/crates/collab/src/api/billing.rs b/crates/collab/src/api/billing.rs
index bd8890019b7..46406e0e38b 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);