summaryrefslogtreecommitdiff
path: root/crates/typst-kit/src
diff options
context:
space:
mode:
authorJosh Soref <2119212+jsoref@users.noreply.github.com>2024-09-26 13:32:55 -0400
committerGitHub <noreply@github.com>2024-09-26 17:32:55 +0000
commitca1f749c087bc19f6fbcebcd3ee34307959a95d5 (patch)
treeafa4bc0fca4b27d15b99df6da625090b0ef864f2 /crates/typst-kit/src
parent3c90878460cecaaa7ac879ba0973f94705b7c062 (diff)
Spelling (#5020)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Diffstat (limited to 'crates/typst-kit/src')
-rw-r--r--crates/typst-kit/src/fonts.rs2
-rw-r--r--crates/typst-kit/src/lib.rs2
-rw-r--r--crates/typst-kit/src/package.rs4
3 files changed, 4 insertions, 4 deletions
diff --git a/crates/typst-kit/src/fonts.rs b/crates/typst-kit/src/fonts.rs
index 07a41f4b..8f85bfdc 100644
--- a/crates/typst-kit/src/fonts.rs
+++ b/crates/typst-kit/src/fonts.rs
@@ -161,7 +161,7 @@ impl FontSearcher {
let path = match &face.source {
Source::File(path) | Source::SharedFile(path, _) => path,
// We never add binary sources to the database, so there
- // shouln't be any.
+ // shouldn't be any.
Source::Binary(_) => continue,
};
diff --git a/crates/typst-kit/src/lib.rs b/crates/typst-kit/src/lib.rs
index 4301727f..d0ea82ef 100644
--- a/crates/typst-kit/src/lib.rs
+++ b/crates/typst-kit/src/lib.rs
@@ -11,7 +11,7 @@
//! - For math: New Computer Modern Math
//! - For code: Deja Vu Sans Mono
//! - [download] contains functionality for making simple web requests with
-//! status reporting, useful for downloading packages from package registires.
+//! status reporting, useful for downloading packages from package registries.
//! It is enabled by the `downloads` feature flag, additionally the
//! `vendor-openssl` can be used on operating systems other than macOS and
//! Windows to vendor OpenSSL when building.
diff --git a/crates/typst-kit/src/package.rs b/crates/typst-kit/src/package.rs
index 3c9e6529..c5c470db 100644
--- a/crates/typst-kit/src/package.rs
+++ b/crates/typst-kit/src/package.rs
@@ -52,13 +52,13 @@ impl PackageStorage {
}
}
- /// Returns a the path at which non-local packages should be stored when
+ /// Returns the path at which non-local packages should be stored when
/// downloaded.
pub fn package_cache_path(&self) -> Option<&Path> {
self.package_cache_path.as_deref()
}
- /// Returns a the path at which local packages are stored.
+ /// Returns the path at which local packages are stored.
pub fn package_path(&self) -> Option<&Path> {
self.package_path.as_deref()
}