diff options
author | Aleksey Kladov <[email protected]> | 2020-03-30 17:51:30 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-03-30 17:51:30 +0100 |
commit | beab6f34ce009bdb2e5f1d3694ebb7749944c033 (patch) | |
tree | 90f9b482ad410ae3e4ddc0e7e1832a57a7e22dbb /crates | |
parent | 671926ac93f0ff921758a919eaf87c056979189f (diff) |
Fix typo
Diffstat (limited to 'crates')
-rw-r--r-- | crates/stdx/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/stdx/src/lib.rs b/crates/stdx/src/lib.rs index 8492c17af..d2efa2236 100644 --- a/crates/stdx/src/lib.rs +++ b/crates/stdx/src/lib.rs | |||
@@ -5,7 +5,7 @@ use std::{cell::Cell, fmt}; | |||
5 | /// Appends formatted string to a `String`. | 5 | /// Appends formatted string to a `String`. |
6 | #[macro_export] | 6 | #[macro_export] |
7 | macro_rules! format_to { | 7 | macro_rules! format_to { |
8 | (&buf:expr) => (); | 8 | ($buf:expr) => (); |
9 | ($buf:expr, $lit:literal $($arg:tt)*) => { | 9 | ($buf:expr, $lit:literal $($arg:tt)*) => { |
10 | { use ::std::fmt::Write as _; let _ = ::std::write!($buf, $lit $($arg)*); } | 10 | { use ::std::fmt::Write as _; let _ = ::std::write!($buf, $lit $($arg)*); } |
11 | }; | 11 | }; |