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}"