From 7805842eae529fd6c7df622a0269249e892b2cca Mon Sep 17 00:00:00 2001 From: Michael Bull Date: Thu, 27 Aug 2020 13:44:56 +0100 Subject: [PATCH] Fix typo in example application --- .../kotlin/com/github/michaelbull/result/example/Application.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/src/main/kotlin/com/github/michaelbull/result/example/Application.kt b/example/src/main/kotlin/com/github/michaelbull/result/example/Application.kt index 18bcb42..4a27c79 100644 --- a/example/src/main/kotlin/com/github/michaelbull/result/example/Application.kt +++ b/example/src/main/kotlin/com/github/michaelbull/result/example/Application.kt @@ -131,7 +131,7 @@ private fun eventToResponse(event: Event?) = when (event) { HttpStatusCode.OK to "First name changed from ${event.old} to ${event.new}" is LastNameChanged -> - HttpStatusCode.OK to "First name changed from ${event.old} to ${event.new}" + HttpStatusCode.OK to "Last name changed from ${event.old} to ${event.new}" is EmailAddressChanged -> HttpStatusCode.OK to "Email address changed from ${event.old} to ${event.new}"