]> git.proxmox.com Git - proxmox.git/commitdiff
tree wide: typo fixes through codespell
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 7 Jun 2022 07:22:45 +0000 (09:22 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 7 Jun 2022 12:08:09 +0000 (14:08 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxmox-rest-server/examples/minimal-rest-server.rs
proxmox-rest-server/src/api_config.rs
proxmox-rest-server/src/lib.rs

index 800677876572d0f6811e556aab489f3cbd71f4ad..91cb9738b86b985e4d1bb98b65a81ec4ebd832ad 100644 (file)
@@ -21,7 +21,7 @@ struct DummyUserInfo;
 
 impl UserInformation for DummyUserInfo {
     fn is_superuser(&self, _userid: &str) -> bool {
-        // Always return true here, so we have access to everthing
+        // Always return true here, so we have access to everything
         true
     }
     fn is_group_member(&self, _userid: &str, group: &str) -> bool {
index 9d257fd1283149456110de64b4916127e3af590e..c63106d33c0f9af63ae788eb2e825b46119b8c43 100644 (file)
@@ -42,7 +42,7 @@ impl ApiConfig {
     /// `api_auth` - The Authentication handler
     ///
     /// `get_index_fn` - callback to generate the root page
-    /// (index). Please note that this fuctions gets a reference to
+    /// (index). Please note that this functions gets a reference to
     /// the [ApiConfig], so it can use [Handlebars] templates
     /// ([render_template](Self::render_template) to generate pages.
     pub fn new<B: Into<PathBuf>>(
index dc538a80b6a951ca1da278962a1587413e1abfcb..3872e5650e451a20d131ebd9bc784ff8822642be 100644 (file)
@@ -104,7 +104,7 @@ lazy_static::lazy_static! {
     static ref PSTART: u64 = PidStat::read_from_pid(Pid::from_raw(*PID)).unwrap().starttime;
 }
 
-/// Retruns the current process ID (see [libc::getpid])
+/// Returns the current process ID (see [libc::getpid])
 ///
 /// The value is cached at startup (so it is invalid after a fork)
 pub(crate) fn pid() -> i32 {