Skip to content

Commit 2db12f1

Browse files
committed
Fix getPlugins code sample
1 parent e5838c2 commit 2db12f1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • target/plugin-sdk/src/main/kotlin/com/squareup/stoic/plugin

target/plugin-sdk/src/main/kotlin/com/squareup/stoic/plugin/StoicConfig.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ import android.content.Context
1919
*
2020
* ```kotlin
2121
* class MyStoicConfig : StoicConfig {
22-
* override fun getPlugins(context: Context): Map<String, StoicPlugin> {
22+
* override fun getPlugins(context: Context): Map<String, Lazy<StoicPlugin>> {
2323
* return mapOf(
24-
* "my-plugin" to MyPlugin(context),
25-
* "another-plugin" to AnotherPlugin()
24+
* "my-plugin" to lazy { MyPlugin(context) },
25+
* "another-plugin" to lazy { AnotherPlugin() }
2626
* )
2727
* }
2828
* }

0 commit comments

Comments
 (0)