From f73f1ed9f0ca5c8ba1d6a1d24ef466f34636cdd5 Mon Sep 17 00:00:00 2001 From: Brian Lehrer <661570+blehrer@users.noreply.github.com> Date: Mon, 18 Aug 2025 01:08:28 -0700 Subject: [PATCH] Update fun-interfaces.md Add line-breaks and indenting to a overly long oneliner --- docs/topics/fun-interfaces.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/topics/fun-interfaces.md b/docs/topics/fun-interfaces.md index ab62e9e77bc..79feb2fe8c5 100644 --- a/docs/topics/fun-interfaces.md +++ b/docs/topics/fun-interfaces.md @@ -75,7 +75,9 @@ interface Printer { fun print() } -fun Printer(block: () -> Unit): Printer = object : Printer { override fun print() = block() } +fun Printer(block: () -> Unit): Printer = object : Printer { + override fun print() = block() +} ``` With callable references to functional interface constructors enabled, this code can be replaced with just a functional interface declaration: