From 43190834c507e8fa8ccc9430077e70d056f21ec2 Mon Sep 17 00:00:00 2001 From: woxtu Date: Sun, 11 Jun 2023 06:53:45 +0900 Subject: [PATCH] Fix `legacy_random` examples (#5047) --- .../Rules/Idiomatic/LegacyRandomRule.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/SwiftLintBuiltInRules/Rules/Idiomatic/LegacyRandomRule.swift b/Source/SwiftLintBuiltInRules/Rules/Idiomatic/LegacyRandomRule.swift index 6361b0c17..2dc5c3182 100644 --- a/Source/SwiftLintBuiltInRules/Rules/Idiomatic/LegacyRandomRule.swift +++ b/Source/SwiftLintBuiltInRules/Rules/Idiomatic/LegacyRandomRule.swift @@ -14,9 +14,9 @@ struct LegacyRandomRule: SwiftSyntaxRule, ConfigurationProviderRule { Example("Float.random(in: 0 ..< 1)\n") ], triggeringExamples: [ - Example("↓arc4random(10)\n"), + Example("↓arc4random()\n"), Example("↓arc4random_uniform(83)\n"), - Example("↓drand48(52)\n") + Example("↓drand48()\n") ] )