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>) -> Result { let opt = opt.into(); let (tx, rx) = watch::channel(false);