From f7393d04b37ddd6e500dfeacc8fbf60fa14a7dce Mon Sep 17 00:00:00 2001 From: Vegard Stikbakke Date: Wed, 19 Jul 2023 16:52:15 +0200 Subject: [PATCH] Update docs/topics/functions.md Co-authored-by: Sarah Haggarty <81160244+sarahhaggarty@users.noreply.github.com> --- docs/topics/functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/functions.md b/docs/topics/functions.md index 8c6e7c19d74..c6aa7e40cf2 100644 --- a/docs/topics/functions.md +++ b/docs/topics/functions.md @@ -177,7 +177,7 @@ fun printHello(name: String?) { ... } ### Single-expression functions -When a function contains a single `return` expression, the curly braces can be omitted and the body is specified after a `=` symbol: +When the function body consists of a single expression, the curly braces can be omitted and the body specified after an `=` symbol: ```kotlin fun double(x: Int): Int = x * 2