From 91c36d8c3e1018fff904176c0b6e2e9ecced7bb9 Mon Sep 17 00:00:00 2001 From: chuangjinglu Date: Sat, 23 Nov 2024 17:25:15 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: chuangjinglu --- SECURITY.md | 2 +- docker/README.md | 2 +- docker/docker-bake.hcl | 2 +- src/api/core/organizations.rs | 4 ++-- src/api/icons.rs | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/SECURITY.md b/SECURITY.md index 0917981c..4d23e51c 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -21,7 +21,7 @@ notify us. We welcome working with you to resolve the issue promptly. Thanks in The following bug classes are out-of scope: - Bugs that are already reported on Vaultwarden's issue tracker (https://github.com/dani-garcia/vaultwarden/issues) -- Bugs that are not part of Vaultwarden, like on the the web-vault or mobile and desktop clients. These issues need to be reported in the respective project issue tracker at https://github.com/bitwarden to which we are not associated +- Bugs that are not part of Vaultwarden, like on the web-vault or mobile and desktop clients. These issues need to be reported in the respective project issue tracker at https://github.com/bitwarden to which we are not associated - Issues in an upstream software dependency (ex: Rust, or External Libraries) which are already reported to the upstream maintainer - Attacks requiring physical access to a user's device - Issues related to software or protocols not under Vaultwarden's control diff --git a/docker/README.md b/docker/README.md index 2e78f534..f76cd35d 100644 --- a/docker/README.md +++ b/docker/README.md @@ -46,7 +46,7 @@ There also is an option to use an other docker container to provide support for ```bash # To install and activate docker run --privileged --rm tonistiigi/binfmt --install arm64,arm -# To unistall +# To uninstall docker run --privileged --rm tonistiigi/binfmt --uninstall 'qemu-*' ``` diff --git a/docker/docker-bake.hcl b/docker/docker-bake.hcl index 38e7ef97..2edf4fbb 100644 --- a/docker/docker-bake.hcl +++ b/docker/docker-bake.hcl @@ -17,7 +17,7 @@ variable "SOURCE_REPOSITORY_URL" { default = null } -// The commit hash of of the current commit this build was triggered on +// The commit hash of the current commit this build was triggered on variable "SOURCE_COMMIT" { default = null } diff --git a/src/api/core/organizations.rs b/src/api/core/organizations.rs index 2b51a144..2bff64b8 100644 --- a/src/api/core/organizations.rs +++ b/src/api/core/organizations.rs @@ -1652,7 +1652,7 @@ struct BulkCollectionsData { remove_collections: bool, } -// This endpoint is only reachable via the organization view, therefor this endpoint is located here +// This endpoint is only reachable via the organization view, therefore this endpoint is located here // Also Bitwarden does not send out Notifications for these changes, it only does this for individual cipher collection updates #[post("/ciphers/bulk-collections", data = "")] async fn post_bulk_collections(data: Json, headers: Headers, mut conn: DbConn) -> EmptyResult { @@ -2789,7 +2789,7 @@ struct OrganizationUserResetPasswordRequest { key: String, } -// Upstrem reports this is the renamed endpoint instead of `/keys` +// Upstream reports this is the renamed endpoint instead of `/keys` // But the clients do not seem to use this at all // Just add it here in case they will #[get("/organizations//public-key")] diff --git a/src/api/icons.rs b/src/api/icons.rs index 6afbaa9f..ebcace6d 100644 --- a/src/api/icons.rs +++ b/src/api/icons.rs @@ -662,7 +662,7 @@ impl reqwest::cookie::CookieStore for Jar { /// The FaviconEmitter is using an optimized version of the DefaultEmitter. /// This prevents emitting tags like comments, doctype and also strings between the tags. /// But it will also only emit the tags we need and only if they have the correct attributes -/// Therefor parsing the HTML content is faster. +/// Therefore parsing the HTML content is faster. use std::collections::BTreeMap; #[derive(Default)]