Skip to content

Commit 3802ad9

Browse files
committed
Update readFile function signature to prioritize RootOptions
1 parent c646862 commit 3802ad9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ fun loadModules(): List<Module> {
163163
.orEmpty()
164164
}
165165

166-
// With RootOptions
166+
// With RootOptions (if you use RootOptions, always place it first)
167167
@RootFunction
168-
fun readFile(path: String, options: RootOptions): String {
168+
fun readFile(options: RootOptions, path: String): String {
169169
return File(path).readText()
170170
}
171171

0 commit comments

Comments
 (0)