Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Kotlin example in manual #6355

Closed
lukaseder opened this issue Jun 21, 2017 · 0 comments
Closed

Improve Kotlin example in manual #6355

lukaseder opened this issue Jun 21, 2017 · 0 comments

Comments

@lukaseder
Copy link
Member

From:

DSL.using(
        properties.getProperty("db.url"),
        properties.getProperty("db.username"),
        properties.getProperty("db.password")
        
    // The below "use" method is an adapted version of the one in kotlin.io
    // See also: https://github.com/JetBrains/kotlin/pull/807
    ).use {
        val ctx = it
    ...

To:

DSL.using(
        properties.getProperty("db.url"),
        properties.getProperty("db.username"),
        properties.getProperty("db.password")
    ).use { ctx ->
    ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant