Skip to content

Commit 369e1bb

Browse files
jyn514camelid
andauthored
Fix indent level for build.rs example (#1431)
* Better fix code blocks in `/about` This is a followup to #1315 to fix the extra blank line at the top and to fix the indentation. Co-authored-by: Camelid <camelidcamel@gmail.com>
1 parent b2eabd6 commit 369e1bb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

templates/core/Cargo.toml.example

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
{# The example Cargo.toml used in about.html #}
2-
[package]
1+
{# The example Cargo.toml used in about.html #}[package]
32
name = "test"
43

54
[package.metadata.docs.rs]

templates/core/about/builds.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h4 id="setting-a-readme"> <a href="#setting-a-readme">Setting a README</a> </h4
3131
<h4 id="detecting-docsrs"> <a href="#detecting-docsrs">Detecting Docs.rs</a> </h4>
3232
<p>
3333
To recognize Docs.rs from <code>build.rs</code> files, you can test for the environment variable <code>DOCS_RS</code>, e.g.:
34-
{% filter dedent(levels=4) -%}
34+
{% filter dedent(levels=3) -%}
3535
<pre><code class="lang-rust">if let Ok(_) = std::env::var("DOCS_RS") {
3636
// ... your code here ...
3737
}</code></pre>

0 commit comments

Comments
 (0)