Skip to content

Commit fa19d78

Browse files
authored
Change the DSL build method to internal (#445)
1 parent 815fd20 commit fa19d78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/main/kotlin/am/ik/yavi/builder/ValidatorBuilderKtDsl.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ inline fun <T> validator(init: ValidatorBuilderKt<T>.() -> Unit): Validator<T> {
3636

3737
class ValidatorBuilderKt<T>(private val validatorBuilder: ValidatorBuilder<T>) {
3838

39-
fun build(): Validator<T> {
39+
@PublishedApi
40+
internal fun build(): Validator<T> {
4041
return validatorBuilder.build()
4142
}
4243

0 commit comments

Comments
 (0)