mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 13:18:59 +08:00
gettext.rs: make trailing comma actually optional
This commit is contained in:
parent
f167ec9063
commit
39c3faeaf4
|
@ -28,7 +28,7 @@ pub(crate) use wgettext;
|
|||
macro_rules! wgettext_fmt {
|
||||
(
|
||||
$string:literal, // format string
|
||||
$($args:expr),*, // list of expressions
|
||||
$($args:expr),* // list of expressions
|
||||
$(,)? // optional trailing comma
|
||||
) => {
|
||||
crate::wutil::sprintf!(&crate::wutil::wgettext!($string), $($args),*)
|
||||
|
|
Loading…
Reference in New Issue
Block a user