This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new ff788fce29 minor refactor: avoid var as a variable name in the example
ff788fce29 is described below

commit ff788fce294abd0540940aea43294295507556ad
Author: Paul King <[email protected]>
AuthorDate: Wed Dec 11 10:50:20 2024 +1000

    minor refactor: avoid var as a variable name in the example
---
 src/spec/doc/core-object-orientation.adoc | 2 +-
 src/spec/test/ClassTest.groovy            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/spec/doc/core-object-orientation.adoc 
b/src/spec/doc/core-object-orientation.adoc
index 7ccf49a88f..1e6d45e2e7 100644
--- a/src/spec/doc/core-object-orientation.adoc
+++ b/src/spec/doc/core-object-orientation.adoc
@@ -981,7 +981,7 @@ 
include::../test/ClassTest.groovy[tags=apply_annotation_1,indent=0]
 ----
 <1> `@SomeAnnotation` applies to the `someMethod` method
 <2> `@SomeAnnotation` applies to the `SomeClass` class
-<3> `@SomeAnnotation` applies to the `var` variable
+<3> `@SomeAnnotation` applies to the `someVar` variable
 
 In order to limit the scope where an annotation can be applied, it is 
necessary to declare it on the annotation
 definition, using the jdk:java.lang.annotation.Target[Target] annotation. For 
example, here is how you would
diff --git a/src/spec/test/ClassTest.groovy b/src/spec/test/ClassTest.groovy
index 543025a928..1bef94a5ad 100644
--- a/src/spec/test/ClassTest.groovy
+++ b/src/spec/test/ClassTest.groovy
@@ -457,7 +457,7 @@ final class ClassTest extends GroovyTestCase {
             @SomeAnnotation                 // <2>
             class SomeClass {}
 
-            @SomeAnnotation String var      // <3>
+            @SomeAnnotation String someVar  // <3>
 
             // end::apply_annotation_1[]
             someMethod()

Reply via email to