You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2022/06/02 02:22:30 UTC
[groovy] 02/02: fix spelling of "explicitly"
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
commit 120289ef140c37694d19b8d5625445e98da64def
Author: Kenyon Ralph <qu...@quicinc.com>
AuthorDate: Wed Jun 1 16:37:06 2022 -0700
fix spelling of "explicitly"
---
.../java/org/codehaus/groovy/transform/NewifyASTTransformation.java | 2 +-
src/spec/doc/core-syntax.adoc | 4 ++--
src/test/gls/syntax/Gep3OrderDslTest.groovy | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/main/java/org/codehaus/groovy/transform/NewifyASTTransformation.java b/src/main/java/org/codehaus/groovy/transform/NewifyASTTransformation.java
index 0d8eee8f3e..9ad3dafa5e 100644
--- a/src/main/java/org/codehaus/groovy/transform/NewifyASTTransformation.java
+++ b/src/main/java/org/codehaus/groovy/transform/NewifyASTTransformation.java
@@ -403,7 +403,7 @@ public class NewifyASTTransformation extends ClassCodeExpressionTransformer impl
Expression argsToUse = argsExp;
if (classType.getOuterClass() != null && ((classType.getModifiers() & org.objectweb.asm.Opcodes.ACC_STATIC) == 0)) {
if (!(argsExp instanceof ArgumentListExpression)) {
- addError("Non-static inner constructor arguments must be an argument list expression; pass 'this' pointer explicitely as first constructor argument otherwise.", mce);
+ addError("Non-static inner constructor arguments must be an argument list expression; pass 'this' pointer explicitly as first constructor argument otherwise.", mce);
return mce;
}
final ArgumentListExpression argsListExp = (ArgumentListExpression) argsExp;
diff --git a/src/spec/doc/core-syntax.adoc b/src/spec/doc/core-syntax.adoc
index 263768bac6..f0358a4122 100644
--- a/src/spec/doc/core-syntax.adoc
+++ b/src/spec/doc/core-syntax.adoc
@@ -768,8 +768,8 @@ include::../test/SyntaxTest.groovy[tags=multi_dim_list,indent=0]
== Arrays
-Groovy reuses the list notation for arrays, but to make such literals arrays,
-you need to explicitely define the type of the array through coercion or type declaration.
+Groovy reuses the list notation for arrays, but to make such literals arrays,
+you need to explicitly define the type of the array through coercion or type declaration.
[source,groovy]
----
diff --git a/src/test/gls/syntax/Gep3OrderDslTest.groovy b/src/test/gls/syntax/Gep3OrderDslTest.groovy
index bfd2f3c31b..92097615fa 100644
--- a/src/test/gls/syntax/Gep3OrderDslTest.groovy
+++ b/src/test/gls/syntax/Gep3OrderDslTest.groovy
@@ -151,7 +151,7 @@ class Order {
/** Valuation closure: "of { qty, unitPrice -> ... }" */
def of(Closure valueCalculation) {
// in order to be able to define closures like { qty * unitPrice }
- // without having to explicitely pass the parameters to the closure
+ // without having to explicitly pass the parameters to the closure
// we can wrap the closure inside another one
// and that closure sets a delegate to the qty and unitPrice variables
def wrapped = { qty, unitPrice ->