Skip to content

Commit 1b3fe51

Browse files
committed
used some plain apostrophes in source file comments
1 parent 24a65ab commit 1b3fe51

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/spec/test-resources/methodnotfound.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ methodNotFound { receiver, name, argList, argTypes, call ->
2222
// name is the name of the called method
2323
// argList is the list of arguments the method was called with
2424
// argTypes is the array of inferred types for each argument
25-
// call is the method call for which we couldnt find a target method
25+
// call is the method call for which we couldn't find a target method
2626
if (receiver==classNodeFor(String)
2727
&& name=='longueur'
2828
&& argList.size()==0) {
2929
handled = true
3030
return newMethod('longueur', classNodeFor(String))
3131
}
3232
}
33-
// end::event[]
33+
// end::event[]

src/spec/test/gdk/WorkingWithIOSpecTest.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Fin.''')
130130
new File(baseDir,'haiku.txt').withWriter('utf-8') { writer ->
131131
writer.writeLine 'Into the ancient pond'
132132
writer.writeLine 'A frog jumps'
133-
writer.writeLine 'Waters sound!'
133+
writer.writeLine "Water's sound!"
134134
}
135135
// end::withwriter_example[]
136136
}
@@ -143,7 +143,7 @@ Fin.''')
143143
// tag::file_leftshift[]
144144
new File(baseDir,'haiku.txt') << '''Into the ancient pond
145145
A frog jumps
146-
Waters sound!'''
146+
Water's sound!'''
147147
// end::file_leftshift[]
148148
}
149149
}

subprojects/groovy-typecheckers/src/main/groovy/groovy/typecheckers/FormatStringChecker.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ import static org.codehaus.groovy.ast.ClassHelper.makeCached
4242

4343
/**
4444
* Checks at compile-time for incorrect format strings in format methods such as {@code printf} and {@code String.format}.
45-
* A format methods specification requires that:
45+
* A format method's specification requires that:
4646
* <ul>
47-
• <li>The format strings syntax is valid</li>
47+
• <li>The format string's syntax is valid</li>
4848
• <li>The correct number of arguments is passed</li>
4949
• <li>Each argument has the appropriate type</li>
5050
* </ul>

0 commit comments

Comments
 (0)