Skip to content

Commit 7e95f64

Browse files
committed
corrected the source tag
1 parent de1ef41 commit 7e95f64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@ interface MessageService {
11531153

11541154
Now we can connect the dots and update the `PersistentMessageService` class to integrate the above changes.
11551155

1156-
[source]
1156+
[source,kotlin]
11571157
-----
11581158
import com.example.kotlin.chat.asDomainObject
11591159
import com.example.kotlin.chat.asRendered
@@ -1192,7 +1192,7 @@ class PersistentMessageService(val messageRepository: MessageRepository) : Messa
11921192

11931193
First, since the `MessageService` interface has been changed, we need to update the method signatures in the corresponding implementation. Consequently, the `mapToViewModel `extension method that we defined previously in the `Extension.kt` file for the `List` type is now needed for the `Flow` type, instead.
11941194

1195-
[source]
1195+
[source,kotlin]
11961196
-----
11971197
import kotlinx.coroutines.flow.Flow
11981198
import kotlinx.coroutines.flow.map
@@ -1202,7 +1202,7 @@ fun Flow<Message>.mapToViewModel(): Flow<MessageVM> = map { it.asViewModel() }
12021202

12031203
For better readability we also added the `asRendered` extension function for the MessageVM class. In `Extensions.kt` file:
12041204

1205-
[source]
1205+
[source,kotlin]
12061206
-----
12071207
fun MessageVM.asRendered(contentType: ContentType = ContentType.MARKDOWN): MessageVM =
12081208
this.copy(content = contentType.render(this.content))

0 commit comments

Comments
 (0)