From: Ladislav Date: Tue, 13 Aug 2019 13:59:36 +0000 (+0200) Subject: fixes misleading documentation X-Git-Tag: dnsdist-1.4.0-rc2~26^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=099498abbcb675f53d3d7fe9c7f17af9459887d4;p=thirdparty%2Fpdns.git fixes misleading documentation Fixes misleading documentation for the `setSwitch` function. --- diff --git a/pdns/arguments.hh b/pdns/arguments.hh index 9370595841..d91a95a533 100644 --- a/pdns/arguments.hh +++ b/pdns/arguments.hh @@ -104,7 +104,7 @@ public: string &set(const string &); //!< Gives a writable reference and allocates space for it string &set(const string &, const string &); //!< Does the same but also allows one to specify a help message void setCmd(const string &, const string &); //!< Add a command flag - string &setSwitch(const string &, const string &); //!< Add a command flag + string &setSwitch(const string &, const string &); //!< Add a switch flag string helpstring(string prefix=""); //!< generates the --help string configstring(bool current=false); //!< generates the --mkconfig bool contains(const string &var, const string &val);