We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fdcde5 commit 67fa59fCopy full SHA for 67fa59f
FirebaseAI/Sources/Tool.swift
@@ -253,8 +253,14 @@ public struct LatLng: Sendable, Encodable {
253
public let longitude: Double
254
255
public init(latitude: Double, longitude: Double) {
256
- precondition(latitude >= -90.0 && latitude <= 90.0, "Latitude must be in the range [-90.0, 90.0].")
257
- precondition(longitude >= -180.0 && longitude <= 180.0, "Longitude must be in the range [-180.0, 180.0].")
+ precondition(
+ latitude >= -90.0 && latitude <= 90.0,
258
+ "Latitude must be in the range [-90.0, 90.0]."
259
+ )
260
261
+ longitude >= -180.0 && longitude <= 180.0,
262
+ "Longitude must be in the range [-180.0, 180.0]."
263
264
self.latitude = latitude
265
self.longitude = longitude
266
}
0 commit comments