Fix Opt::parse_args doc typo

Includes-commit: 9a934bc8ba
Replicated-from: https://github.com/cloudflare/pingora/pull/360
This commit is contained in:
Allan 2024-08-23 15:24:38 +00:00 committed by Edward Wang
parent 5a4a2883ad
commit 4446912080
3 changed files with 3 additions and 3 deletions

2
.bleep
View file

@ -1 +1 @@
ed4f7c51958b688c6bea000c37dc2ba54f2ccc15
b0ee94e1ce384cb2d23a40bf6c7a4b7e32541412

View file

@ -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 {

View file

@ -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);