From b0ad8bda06bd223b51acfe80b3c63e7e0be26d35 Mon Sep 17 00:00:00 2001 From: Andre Steingress Date: Wed, 4 May 2016 22:07:47 +0200 Subject: [PATCH] GROOVY-7604: traits docs diamond problem explanation --- src/spec/doc/core-traits.adoc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/spec/doc/core-traits.adoc b/src/spec/doc/core-traits.adoc index 36232e4942c..d443b948e8e 100644 --- a/src/spec/doc/core-traits.adoc +++ b/src/spec/doc/core-traits.adoc @@ -199,8 +199,7 @@ WARNING: While traits support public fields, it is not recommended to use them a == Composition of behaviors -Traits can be used to implement multiple inheritance in a controlled way, avoiding the diamond issue. For example, we -can have the following traits: +Traits can be used to implement multiple inheritance in a controlled way. For example, we can have the following traits: [source,groovy] ----