From 9efc393f0d2792c5b30e7b31f5c8b6c46b2bbed6 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Wed, 27 Sep 2023 23:00:38 -0400 Subject: [PATCH] remove the Rider class scope --- hws/04_ride_sharing/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hws/04_ride_sharing/README.md b/hws/04_ride_sharing/README.md index 07bb503..ff11a5c 100644 --- a/hws/04_ride_sharing/README.md +++ b/hws/04_ride_sharing/README.md @@ -256,7 +256,7 @@ When finding the driver, you must always find the closest driver. And when the c ```cpp // calculate the distance between two coordinates using Haversine formula -double Rider::calculateDistance(double lat1, double lon1, double lat2, double lon2) { +double calculateDistance(double lat1, double lon1, double lat2, double lon2) { const double radiusOfEarth = 6371.0; // Earth's radius in kilometers // convert latitude and longitude from degrees to radians