From 4446912080ce84063e2da458a0c507b466db3825 Mon Sep 17 00:00:00 2001 From: Allan <6740989+allan2@users.noreply.github.com> Date: Fri, 23 Aug 2024 15:24:38 +0000 Subject: Fix `Opt::parse_args` doc typo Includes-commit: 9a934bc8baa4e8b05639f6aa71ca9695832986f0 Replicated-from: https://github.com/cloudflare/pingora/pull/360 --- .bleep | 2 +- pingora-core/src/server/configuration/mod.rs | 2 +- pingora-core/src/server/mod.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.bleep b/.bleep index 0418189..59c1785 100644 --- a/.bleep +++ b/.bleep @@ -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>) -> Result { let opt = opt.into(); let (tx, rx) = watch::channel(false); -- cgit v1.2.3