From 7d0ae692c91150ea854ebfaaeef6de0bbaca55f7 Mon Sep 17 00:00:00 2001 From: Pascal Hertleif Date: Fri, 15 May 2015 12:23:26 +0200 Subject: [PATCH 1/2] TRPL: Remove Duplicate Reference Pandoc shows a warning for this. I'm not sure if it's actually invalid Markdown. --- src/doc/trpl/const-and-static.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/doc/trpl/const-and-static.md b/src/doc/trpl/const-and-static.md index be0c87319b37c..f8630dcfc53b5 100644 --- a/src/doc/trpl/const-and-static.md +++ b/src/doc/trpl/const-and-static.md @@ -31,8 +31,6 @@ static N: i32 = 5; Unlike [`let`][let] bindings, you must annotate the type of a `static`. -[let]: variable-bindings.html - Statics live for the entire lifetime of a program, and therefore any reference stored in a constant has a [`’static` lifetime][lifetimes]: From 94be1153f1b9e8b154cb8982b7f180505ae7dab0 Mon Sep 17 00:00:00 2001 From: Pascal Hertleif Date: Fri, 15 May 2015 14:41:21 +0200 Subject: [PATCH 2/2] TRPL: Fix Inline Code Typography --- src/doc/trpl/const-and-static.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/trpl/const-and-static.md b/src/doc/trpl/const-and-static.md index f8630dcfc53b5..f309dd0fad6d9 100644 --- a/src/doc/trpl/const-and-static.md +++ b/src/doc/trpl/const-and-static.md @@ -32,7 +32,7 @@ static N: i32 = 5; Unlike [`let`][let] bindings, you must annotate the type of a `static`. Statics live for the entire lifetime of a program, and therefore any -reference stored in a constant has a [`’static` lifetime][lifetimes]: +reference stored in a constant has a [`'static` lifetime][lifetimes]: ```rust static NAME: &'static str = "Steve";