diff options
author | Allan <[email protected]> | 2024-08-23 15:24:38 +0000 |
---|---|---|
committer | Edward Wang <[email protected]> | 2024-09-06 13:43:53 -0700 |
commit | 4446912080ce84063e2da458a0c507b466db3825 (patch) | |
tree | 7c1cde235b7dda87f09792e2c7d8e211120351b2 | |
parent | 5a4a2883ad3fc464f5ba7ccce053576d678bf22f (diff) | |
download | pingora-4446912080ce84063e2da458a0c507b466db3825.tar.gz pingora-4446912080ce84063e2da458a0c507b466db3825.zip |
Fix `Opt::parse_args` doc typo
Includes-commit: 9a934bc8baa4e8b05639f6aa71ca9695832986f0
Replicated-from: https://github.com/cloudflare/pingora/pull/360
-rw-r--r-- | .bleep | 2 | ||||
-rw-r--r-- | pingora-core/src/server/configuration/mod.rs | 2 | ||||
-rw-r--r-- | pingora-core/src/server/mod.rs | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -1 +1 @@ -ed4f7c51958b688c6bea000c37dc2ba54f2ccc15
\ No newline at end of file +b0ee94e1ce384cb2d23a40bf6c7a4b7e32541412
\ No newline at end of file diff --git a/pingora-core/src/server/configuration/mod.rs b/pingora-core/src/server/configuration/mod.rs index 5174d40..21428aa 100644 --- a/pingora-core/src/server/configuration/mod.rs +++ b/pingora-core/src/server/configuration/mod.rs @@ -118,7 +118,7 @@ impl Default for ServerConf { /// Command-line options /// -/// Call `Opt::from_args()` to build this object from the process's command line arguments. +/// Call `Opt::parse_args()` to build this object from the process's command line arguments. #[derive(Parser, Debug, Default)] #[clap(name = "basic", long_about = None)] pub struct Opt { diff --git a/pingora-core/src/server/mod.rs b/pingora-core/src/server/mod.rs index c3659f2..d9e57dd 100644 --- a/pingora-core/src/server/mod.rs +++ b/pingora-core/src/server/mod.rs @@ -201,7 +201,7 @@ impl Server { /// independent services. /// /// Command line options can either be passed by parsing the command line arguments via - /// `Opt::from_args()`, or be generated by other means. + /// `Opt::parse_args()`, or be generated by other means. pub fn new(opt: impl Into<Option<Opt>>) -> Result<Server> { let opt = opt.into(); let (tx, rx) = watch::channel(false); |