Skip to content

Commit 54ed43e

Browse files
committed
Merge branch 'macro_migration' of github.com:derekdreery/edition-guide into macro_migration
2 parents 820c5ab + 6cb392c commit 54ed43e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rust-2018/macros/macro-changes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ macro_rules! warn {
191191

192192
So the code knows to look for any macros used locally. But wait - this won't compile, because we
193193
use the `format_args!` macro that isn't in our local crate (hence the convoluted example). The
194-
solution is to add a level of indirection: we crate a macro that wraps `format_args`, but is local
194+
solution is to add a level of indirection: we create a macro that wraps `format_args`, but is local
195195
to our crate. That way everything works in both editions (sadly we have to pollute the global
196196
namespace a bit, but that's ok).
197197

0 commit comments

Comments
 (0)