Skip to content

Commit 9272a2b

Browse files
jamie-houstontschuchortdev
authored andcommitted
typos in readme
1 parent d3b9b35 commit 9272a2b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ fun `test my annotation processor`() {
3131
// Classes from the test environment are visible to the compiled sources
3232
val testEnvClass = TestEnvClass()
3333
}
34+
}
3435
""")
3536

3637
val javaSource = SourceFile.new("JClass.java", """
@@ -49,7 +50,7 @@ Configure compilation
4950
// pass your own instance of an annotation processor
5051
annotationProcessors = listOf(MyAnnotationProcessor())
5152

52-
inheritClasspath = true
53+
inheritClassPath = true
5354
messageOutputStream = System.out // see diagnostics in real time
5455
}.compile()
5556
```
@@ -62,7 +63,7 @@ Assert results
6263

6364
// Load compiled classes and inspect generated code through reflection
6465
val kClazz = result.classloader.loadClass("KClass")
65-
assertThat(kClazz).hasDeclaredMethod("foo")
66+
assertThat(kClazz).hasDeclaredMethods("foo")
6667
}
6768
```
6869

0 commit comments

Comments
 (0)