Skip to content

Commit af7fc31

Browse files
committed
Fix confusing indentation in example
1 parent c8673ad commit af7fc31

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

text/3830-dedented-string-literals.md

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,8 +1389,7 @@ Consider a conversion from a regular string literal that prints some HTML:
13891389
```rust
13901390
writeln!(
13911391
w,
1392-
" \
1393-
<!-- <link rel=\"shortcut icon\" href=\"{rel}favicon.ico\"> -->\
1392+
" <!-- <link rel=\"shortcut icon\" href=\"{rel}favicon.ico\"> -->\
13941393
\n</head>\
13951394
\n<body>\
13961395
\n <div class=\"body\">\
@@ -1434,20 +1433,19 @@ writeln!(
14341433
w,
14351434
dedent!(
14361435
r#"
1437-
<!-- <link rel="shortcut icon" href="{}favicon.ico"> -->
1438-
</head>
1439-
<body>
1440-
<div class="body">
1441-
<h1 class="title">
1442-
{}
1443-
<span class="nav">{}</span>
1444-
</h1>
1445-
"#
1446-
),
1447-
rel,
1448-
h1,
1449-
nav
1450-
)
1436+
<!-- <link rel="shortcut icon" href="{}favicon.ico"> -->
1437+
</head>
1438+
<body>
1439+
<div class="body">
1440+
<h1 class="title">
1441+
{}
1442+
<span class="nav">{}</span>
1443+
</h1>
1444+
"#
1445+
),
1446+
rel,
1447+
h1,
1448+
nav
14511449
);
14521450
```
14531451

0 commit comments

Comments
 (0)