We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1924e9b commit 1245908Copy full SHA for 1245908
modules/contributor/pages/code-style-guide.adoc
@@ -366,14 +366,15 @@ format!(
366
=== Captured versus uncaptured format string identifiers
367
368
We place no restriction on named format string identifiers.
369
-Both options below are considered valid.
+All options below are considered valid.
370
371
[source,rust]
372
----
373
let greetee = "world";
374
375
format!("Hello, {greetee}!");
376
format!("Hello, {greetee}!", greetee = "universe");
377
+format!("Hello {name}, hello again {name}", name = greetee);
378
379
380
// TODO: Do we allow mix-and-matching captured and named identifiers?
0 commit comments