From 10f56208d2cd91f5acd5ca36b0ae692cc01903f4 Mon Sep 17 00:00:00 2001 From: alejandrapedroza <39709865+AlejandraPedroza@users.noreply.github.com> Date: Tue, 24 Sep 2024 17:03:09 +0200 Subject: [PATCH] chore: adding `data` in code line Co-authored-by: Alejandro Serrano --- docs/topics/control-flow.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/control-flow.md b/docs/topics/control-flow.md index 6050aab1993..a18d9b3481c 100644 --- a/docs/topics/control-flow.md +++ b/docs/topics/control-flow.md @@ -192,7 +192,7 @@ To include a guard condition in a branch, place the guard condition after the pr ```kotlin sealed interface Animal { - class Cat(val mouseHunter: Boolean) : Animal + data class Cat(val mouseHunter: Boolean) : Animal data class Dog(val breed: String) : Animal }