From 5a0c9924abd4a6b854d68b851990dd465d8c0b4a Mon Sep 17 00:00:00 2001 From: Pavel Chuchuva Date: Thu, 7 Mar 2024 10:31:36 +1100 Subject: [PATCH] Fix typo --- docs/Migrate to v11.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Migrate to v11.md b/docs/Migrate to v11.md index 44d1ec9cac..c818e927ac 100644 --- a/docs/Migrate to v11.md +++ b/docs/Migrate to v11.md @@ -440,7 +440,7 @@ addLocationObserver(observer: LocationObserver, looper: Looper) The location provider automatically starts and stops collecting locations based on the amount of subscribers: once the first subscriber is registered, the service starts, and when the last observer is unregistered, the service stops. -If you want to get the last known location, you can do so via the asynchronous `LocationProivder.getLastLocation` function. The function returns a Cancelable object which allows cancelling the request if needed: +If you want to get the last known location, you can do so via the asynchronous `LocationProvider.getLastLocation` function. The function returns a Cancelable object which allows cancelling the request if needed: ``` kotlin val lastLocationCancelable = locationProvider.getLastLocation { result -> result?.let { doSomething(it) }