From 0148d8497965cd56822165d666c53be90286b36b Mon Sep 17 00:00:00 2001 From: tomaytotomato <971697+tomaytotomato@users.noreply.github.com> Date: Sun, 11 Aug 2024 16:50:52 +0100 Subject: [PATCH] Updating README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 246ec07..b7035bb 100644 --- a/README.md +++ b/README.md @@ -42,18 +42,18 @@ import com.tomaytotomato.SearchLocationService; public class Main { public static void main(String[] args) { - SearchLocationService service = SearchLocationService.builder().build(); + SearchLocationService searchLocationService = SearchLocationService.builder().build(); // Find all locations named San Francisco - List results = service.search("san francisco"); + List results = searchLocationService.search("san francisco"); printResults(results); // Narrow search to the US - results = service.search("san francisco, us"); + results = searchLocationService.search("san francisco, us"); printResults(results); // Narrow search further to California - results = service.search("san francisco, us california"); + results = searchLocationService.search("san francisco, us california"); printResults(results); } @@ -145,7 +145,7 @@ Search any text for a location, the `SearchLocationService` can handle formatted import com.tomaytotomato.SearchLocationService; -public class LocationSearchServiceExample { +public class SearchLocationServiceExample { public static void main(String[] args) { SearchLocationService searchLocationService = SearchLocationService.builder()