From b000298e0f6578ac028d0a3ab18b21695b47cfa1 Mon Sep 17 00:00:00 2001 From: Andrey Pelykh <10947577+andreypelykh@users.noreply.github.com> Date: Fri, 16 Feb 2018 11:51:15 +0200 Subject: [PATCH] fix variable name --- doc/operators/getcurrentposition.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/operators/getcurrentposition.md b/doc/operators/getcurrentposition.md index e35e496..d880326 100644 --- a/doc/operators/getcurrentposition.md +++ b/doc/operators/getcurrentposition.md @@ -23,7 +23,7 @@ var source = Rx.DOM.geolocation.getCurrentPosition(); var subscription = source.subscribe( function (pos) { - console.log('Next:' + position.coords.latitude + ',' + position.coords.longitude); + console.log('Next:' + pos.coords.latitude + ',' + pos.coords.longitude); }, function (err) { var message = '';