Skip to content

Commit afacae4

Browse files
authored
Merge pull request #168 from xsnippet/typos
Spell check with Typos
2 parents ef8baf4 + 3c959d5 commit afacae4

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

.github/workflows/tests.yml

+7
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ defaults:
1616
shell: bash
1717

1818
jobs:
19+
spellcheck:
20+
name: Spell check with Typos
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: crate-ci/typos@v1.27.3
25+
1926
cargo-fmt:
2027
runs-on: ubuntu-latest
2128
steps:

src/storage/errors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::error;
22
use std::fmt;
33

44
/// All errors that can be returned by the storage layer wrapped into a single
5-
/// enum type for convinience.
5+
/// enum type for convenience.
66
#[derive(Debug)]
77
pub enum StorageError {
88
/// Snippet with this id already exists in the database

src/web/content.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use crate::errors::ApiError;
1313
use crate::storage::Pagination;
1414

1515
/// The default limit for the request size (to prevent DoS attacks). Can be
16-
/// overriden in the config by setting `max_request_size` to a different value
16+
/// overridden in the config by setting `max_request_size` to a different value
1717
const MAX_REQUEST_SIZE: u64 = 1024 * 1024;
1818
/// The list of supported formats. When changed, the implementation of
1919
/// Input::from_data() must be updated accordingly.
@@ -109,7 +109,7 @@ impl<'r, 'o: 'r, T: Serialize> Responder<'r, 'o> for Output<T> {
109109
Json(value).respond_to(request)
110110
} else {
111111
// this shouldn't be possible as by this point content negotiation has already
112-
// succeded
112+
// succeeded
113113
error!("Failed to serialize data to {}", content_type);
114114
Err(Status::InternalServerError)
115115
}
@@ -173,7 +173,7 @@ impl FromFormField<'_> for PaginationLimit {
173173
/// A guard that analyzes the Accept header of a user request to determine what
174174
/// media type should be used for serializing the response.
175175
///
176-
/// 406 Not Accetable is returned if a user requests an unsupported data format.
176+
/// 406 Not Acceptable is returned if a user requests an unsupported data format.
177177
pub struct NegotiatedContentType(pub ContentType);
178178

179179
impl Default for NegotiatedContentType {

tests/test_gabbits.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def start_fixture(self):
211211
"ROCKET_JWT_JWKS_URI": "file://{}".format(self.jwks.name),
212212
})
213213

214-
# this is ugly, but apparentely there is no other way to generate some
214+
# this is ugly, but apparently there is no other way to generate some
215215
# data in a Gabbi test fixture, and then use it in the YAML scenarios
216216
self.tokens = self._generate_tokens(private_key)
217217
os.environ.update(self.tokens)

0 commit comments

Comments
 (0)