From 1f4e98b746ee3e113e6ba61914d1911ff3debd23 Mon Sep 17 00:00:00 2001 From: Andriy Yurchuk Date: Fri, 11 Aug 2017 13:57:14 +0200 Subject: [PATCH 1/2] Fix code style by removing `:fail` from lower-type-bounds.md --- _tour/lower-type-bounds.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_tour/lower-type-bounds.md b/_tour/lower-type-bounds.md index 1c422d82d5..ae21c6a4b4 100644 --- a/_tour/lower-type-bounds.md +++ b/_tour/lower-type-bounds.md @@ -18,7 +18,7 @@ While [upper type bounds](upper-type-bounds.html) limit a type to a subtype of a Here is an example where this is useful: -```tut:fail +```tut trait Node[+B] { def prepend(elem: B): Unit } From d53fe3f728516978c8f7eb7d2bd04afe8ae745ed Mon Sep 17 00:00:00 2001 From: Andriy Yurchuk Date: Fri, 11 Aug 2017 14:52:34 +0200 Subject: [PATCH 2/2] Fix code style by replacing tab with two spaces --- _tour/self-types.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_tour/self-types.md b/_tour/self-types.md index 16d29516be..fb357f7151 100644 --- a/_tour/self-types.md +++ b/_tour/self-types.md @@ -24,12 +24,12 @@ trait User { } trait Tweeter { - this: User => // reassign this - def tweet(tweetText: String) = println(s"$username: $tweetText") + this: User => // reassign this + def tweet(tweetText: String) = println(s"$username: $tweetText") } class VerifiedTweeter(val username_ : String) extends Tweeter with User { // We mixin User because Tweeter required it - def username = s"real $username_" + def username = s"real $username_" } val realBeyoncé = new VerifiedTweeter("Beyoncé")