From a033f1146935fb0f94e7b593347f8c8f36884c78 Mon Sep 17 00:00:00 2001 From: mackey0225 Date: Mon, 6 Nov 2023 21:23:15 +0900 Subject: [PATCH] misc: fix typos (#216) --- examples/axum-jwt-authentication.mdx | 2 +- examples/examples.mdx | 2 +- examples/serenity-todo.mdx | 2 +- getting-started/quick-start.mdx | 2 +- tutorials/discord-weather-forecast.mdx | 2 +- tutorials/send-your-logs-to-datadog.mdx | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/axum-jwt-authentication.mdx b/examples/axum-jwt-authentication.mdx index dcaa5e9..10806b3 100644 --- a/examples/axum-jwt-authentication.mdx +++ b/examples/axum-jwt-authentication.mdx @@ -247,7 +247,7 @@ Accessing the private endpoint with the token will now succeed: $ curl --header "Authorization: Bearer " http://localhost:8000/private ``` -The token is set to expire in 5 minutus, so wait a while and try to access the private endpoint again. Once the token has expired, a user will need to get a new token from login. +The token is set to expire in 5 minutes, so wait a while and try to access the private endpoint again. Once the token has expired, a user will need to get a new token from login. Looking to extend this example? Here's a couple of ideas to get you started: - Create a frontend to host the login diff --git a/examples/examples.mdx b/examples/examples.mdx index 7ca09b3..6c409cf 100644 --- a/examples/examples.mdx +++ b/examples/examples.mdx @@ -2,7 +2,7 @@ title: "Examples" --- -{/* TOOD: Add this page if it gets more content */} +{/* TODO: Add this page if it gets more content */} This section of the docs has easy to follow guides for getting started with all supported frameworks. diff --git a/examples/serenity-todo.mdx b/examples/serenity-todo.mdx index 5c0435f..8aebff7 100644 --- a/examples/serenity-todo.mdx +++ b/examples/serenity-todo.mdx @@ -4,7 +4,7 @@ title: "Todo List Bot" ### Prerequisites -In this example we will deploy a Serenity bot with Shuttle that can add, list and complete todos using [Application Commands](https://discord.com/developers/docs/interactions/application-commands). To persist the todos we need a database. We will have Shuttle provison a PostgreSQL database for us by passing `#[shared::Postgres] pool: PgPool` as an argument to our `main` function. +In this example we will deploy a Serenity bot with Shuttle that can add, list and complete todos using [Application Commands](https://discord.com/developers/docs/interactions/application-commands). To persist the todos we need a database. We will have Shuttle provision a PostgreSQL database for us by passing `#[shared::Postgres] pool: PgPool` as an argument to our `main` function. To run this bot we need a valid Discord Token. To get started log in to the [Discord developer portal](https://discord.com/developers/applications). diff --git a/getting-started/quick-start.mdx b/getting-started/quick-start.mdx index 5ae1c40..d651020 100644 --- a/getting-started/quick-start.mdx +++ b/getting-started/quick-start.mdx @@ -27,7 +27,7 @@ And to deploy it: cargo shuttle deploy --allow-dirty ``` -`--allow-dirty` allows deploying without your changes being commited to git. +`--allow-dirty` allows deploying without your changes being committed to git. You can also run your project locally for development, check out our [local run](./local-run) section. diff --git a/tutorials/discord-weather-forecast.mdx b/tutorials/discord-weather-forecast.mdx index 73274a0..08888ef 100644 --- a/tutorials/discord-weather-forecast.mdx +++ b/tutorials/discord-weather-forecast.mdx @@ -386,7 +386,7 @@ pub async fn get_forecast( .json::() .await?; - // Combine the location with the foreact + // Combine the location with the forecast Ok((first_location, forecast)) } ``` diff --git a/tutorials/send-your-logs-to-datadog.mdx b/tutorials/send-your-logs-to-datadog.mdx index 2b1a091..c038b66 100644 --- a/tutorials/send-your-logs-to-datadog.mdx +++ b/tutorials/send-your-logs-to-datadog.mdx @@ -256,8 +256,8 @@ LOG_LEVEL = "INFO,shuttle_datadog_logs=DEBUG" and `Secrets.toml` ```toml -DD_API_KEY = "your-datdog-api-key" -DD_TAGS = "env:prod,service:shutle-datadog-logs" +DD_API_KEY = "your-datadog-api-key" +DD_TAGS = "env:prod,service:shuttle-datadog-logs" LOG_LEVEL = "INFO" ```