]> git.proxmox.com Git - proxmox-backup.git/commitdiff
proxmox-rest-server: fix spelling errors
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 1 Oct 2021 04:43:30 +0000 (06:43 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 1 Oct 2021 04:43:30 +0000 (06:43 +0200)
proxmox-rest-server/src/api_config.rs
proxmox-rest-server/src/lib.rs

index 391785438b20dd3e06ae9c21a012bde5e039b025..f94390a71080f7087f9d4a0ff7e8a6df78e56b76 100644 (file)
@@ -41,7 +41,7 @@ impl ApiConfig {
     ///
     /// `env_type` - The environment type.
     ///
-    /// `api_auth` - The Authentification handler
+    /// `api_auth` - The Authentication handler
     ///
     /// `get_index_fn` - callback to generate the root page
     /// (index). Please note that this fuctions gets a reference to
@@ -217,9 +217,9 @@ impl ApiConfig {
         Ok(())
     }
 
-    /// Enable the authentification log feature
+    /// Enable the authentication log feature
     ///
-    /// When enabled, all authentification requests are logged to the
+    /// When enabled, all authentication requests are logged to the
     /// specified file. This function also registers a
     /// `api-auth-log-reopen` command one the [CommandSocket].
     pub fn enable_auth_log<P>(
index 6ac2b146ffc2db1643eff6593c7433cbeeccbaa2..fe3927757be0730ba8b896f3c2bb8d73a8bdae27 100644 (file)
@@ -5,13 +5,12 @@
 //!
 //! ## Features
 //!
-//! * HTTP and HTTP2
 //! * highly threaded code, uses Rust async
 //! * static API definitions using schemas
 //! * restartable systemd daemons using `systemd_notify`
 //! * support for long running worker tasks (threads or async tokio tasks)
-//! * supports separate access and authentification log files
-//! * separate control socket to trigger management operations
+//! * supports separate access and authentication log files
+//! * extra control socket to trigger management operations
 //!   - logfile rotation
 //!   - worker task management
 //! * generic interface to authenticate user
@@ -57,7 +56,7 @@ pub use worker_task::*;
 mod h2service;
 pub use h2service::*;
 
-/// Authentification Error
+/// Authentication Error
 pub enum AuthError {
     Generic(Error),
     NoData,
@@ -69,7 +68,7 @@ impl From<Error> for AuthError {
     }
 }
 
-/// User Authentification trait
+/// User Authentication trait
 pub trait ApiAuth {
     /// Extract user credentials from headers and check them.
     ///