From 506f7aaa682f5a29a0c16a30e54d4bb8b6879029 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Thu, 25 Oct 2018 12:53:41 +0300 Subject: [PATCH] Replace toString with string template: fix grammar --- .../inspections/ReplaceToStringWithStringTemplateInspection.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/src/org/jetbrains/kotlin/idea/inspections/ReplaceToStringWithStringTemplateInspection.kt b/idea/src/org/jetbrains/kotlin/idea/inspections/ReplaceToStringWithStringTemplateInspection.kt index 4288daedbee..89e4ae6980d 100644 --- a/idea/src/org/jetbrains/kotlin/idea/inspections/ReplaceToStringWithStringTemplateInspection.kt +++ b/idea/src/org/jetbrains/kotlin/idea/inspections/ReplaceToStringWithStringTemplateInspection.kt @@ -32,7 +32,7 @@ class ReplaceToStringWithStringTemplateInspection : AbstractApplicabilityBasedIn element.replace(KtPsiFactory(element).createExpression("\"$$variable\"")) } - override fun inspectionText(element: KtDotQualifiedExpression) = "Should be replaced 'toString' with string template" + override fun inspectionText(element: KtDotQualifiedExpression) = "Call of 'toString' could be replaced with string template" override fun inspectionTarget(element: KtDotQualifiedExpression) = element