From 024e9f6b729fc98e8b6b79144d192ca5d1d99837 Mon Sep 17 00:00:00 2001 From: Tommaso Fonda Date: Wed, 18 Jun 2025 16:40:30 +0200 Subject: [PATCH] Fix typos in the Xtend docs --- xtend-website/documentation/204_activeannotations.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xtend-website/documentation/204_activeannotations.md b/xtend-website/documentation/204_activeannotations.md index fd702ef..2a804ad 100644 --- a/xtend-website/documentation/204_activeannotations.md +++ b/xtend-website/documentation/204_activeannotations.md @@ -357,7 +357,7 @@ public void setName(final String name) { } ``` -So by default a public getter and a public setter method is created. The `@Accessors` can be configured to tell that you only want one or the other and to change the visibility. this is done by means of [AccessorType]({{site.src.xtext}}/org.eclipse.xtend.lib/src/org/eclipse/xtend/lib/annotations/Accessors.xtend) You can also use the annotation on class level to do the same for all fields. +So by default a public getter and a public setter methods are created. The `@Accessors` can be configured to tell that you only want one or the other and to change the visibility. this is done by means of [AccessorType]({{site.src.xtext}}/org.eclipse.xtend.lib/src/org/eclipse/xtend/lib/annotations/Accessors.xtend) You can also use the annotation on class level to do the same for all fields. Here is a more complex example, that shows how it works: @@ -432,15 +432,15 @@ Example: ## @Delegate {#delegate-annotation} -The [`@Delegate`]({{site.src.xtext}}/org.eclipse.xtend.lib/src/org/eclipse/xtend/lib/annotations/Delegate.xtend) annotation automatically generated delegate methods for all interfaces shared between the delegate and the currently implemented class. You can optionally restrict it to explicitly stated interfaces. +The [`@Delegate`]({{site.src.xtext}}/org.eclipse.xtend.lib/src/org/eclipse/xtend/lib/annotations/Delegate.xtend) annotation automatically generates delegate methods for all interfaces shared between the delegate and the currently implemented class. You can optionally restrict it to explicitly stated interfaces. Let's start with a basic example: ```xtend class MyClass implements SomeInterface { - // generates all methods of List and delegates to this field - @Delegate SomeSubTypeOfSumInterface myDelegate + // generates all methods of SomeInterface and delegates to this field + @Delegate SomeSubTypeOfSomeInterface myDelegate } ```