From 1950abb3b7afd93755420ff561af12e073e5cb02 Mon Sep 17 00:00:00 2001 From: Iulian Onofrei <6d0847b9@opayq.com> Date: Wed, 28 Oct 2020 21:45:00 +0200 Subject: [PATCH] Fix incomplete example (#3396) --- .../Rules/Idiomatic/PreferZeroOverExplicitInitRule.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/SwiftLintFramework/Rules/Idiomatic/PreferZeroOverExplicitInitRule.swift b/Source/SwiftLintFramework/Rules/Idiomatic/PreferZeroOverExplicitInitRule.swift index 3a457a2eb..c212b0246 100644 --- a/Source/SwiftLintFramework/Rules/Idiomatic/PreferZeroOverExplicitInitRule.swift +++ b/Source/SwiftLintFramework/Rules/Idiomatic/PreferZeroOverExplicitInitRule.swift @@ -20,7 +20,7 @@ public struct PreferZeroOverExplicitInitRule: OptInRule, ConfigurationProviderRu kind: .idiomatic, nonTriggeringExamples: [ Example("CGRect(x: 0, y: 0, width: 0, height: 1)"), - Example("CGPoint(x: 0, y: -1"), + Example("CGPoint(x: 0, y: -1)"), Example("CGSize(width: 2, height: 4)"), Example("CGVector(dx: -5, dy: 0)") ],