diff --git a/templates/core/about/builds.html b/templates/core/about/builds.html index 43628605b..5e4f74c26 100644 --- a/templates/core/about/builds.html +++ b/templates/core/about/builds.html @@ -32,7 +32,7 @@

Detecting Docs.rs To recognize Docs.rs from build.rs files, you can test for the environment variable DOCS_RS, e.g.: {% filter dedent(levels=3) -%} -
if let Ok(_) = std::env::var("DOCS_RS") {
+        
if std::env::var("DOCS_RS").is_ok() {
                 // ... your code here ...
             }
{%- endfilter %}