From 2478616d3353346dbcc5abf2d2989c6a79f71f28 Mon Sep 17 00:00:00 2001 From: Bert Verhelst Date: Mon, 12 Oct 2015 11:15:06 +0200 Subject: [PATCH 1/3] docs($location): minor english improvements --- src/ng/location.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ng/location.js b/src/ng/location.js index a904b100b7c..befd8579513 100644 --- a/src/ng/location.js +++ b/src/ng/location.js @@ -574,9 +574,9 @@ var locationPrototype = { * @description * This method is getter / setter. * - * Return hash fragment when called without any parameter. + * Return hash fragment when called without any parameters. * - * Change hash fragment when called with parameter and return `$location`. + * Changes the hash fragment when called with parameter and returns `$location`. * * * ```js @@ -597,7 +597,7 @@ var locationPrototype = { * @name $location#replace * * @description - * If called, all changes to $location during current `$digest` will be replacing current history + * If called, all changes to $location during current `$digest` will replace the current history * record, instead of adding new one. */ replace: function() { From 96d1a75138d898f2b4c5b92ec50f2ee09bb4a483 Mon Sep 17 00:00:00 2001 From: Bert Verhelst Date: Mon, 12 Oct 2015 11:36:57 +0200 Subject: [PATCH 2/3] Update location.js --- src/ng/location.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ng/location.js b/src/ng/location.js index befd8579513..dfc02a75b35 100644 --- a/src/ng/location.js +++ b/src/ng/location.js @@ -574,9 +574,9 @@ var locationPrototype = { * @description * This method is getter / setter. * - * Return hash fragment when called without any parameters. + * Returns the hash fragment when called without any parameters. * - * Changes the hash fragment when called with parameter and returns `$location`. + * Changes the hash fragment when called with a parameter and returns `$location`. * * * ```js From 9a20e6f154a4772eaa23259d0b306e8bdcc8b3ca Mon Sep 17 00:00:00 2001 From: Bert Verhelst Date: Mon, 12 Oct 2015 11:38:07 +0200 Subject: [PATCH 3/3] Update location.js --- src/ng/location.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ng/location.js b/src/ng/location.js index dfc02a75b35..f575a653f91 100644 --- a/src/ng/location.js +++ b/src/ng/location.js @@ -597,8 +597,8 @@ var locationPrototype = { * @name $location#replace * * @description - * If called, all changes to $location during current `$digest` will replace the current history - * record, instead of adding new one. + * If called, all changes to $location during the current `$digest` will replace the current history + * record, instead of adding a new one. */ replace: function() { this.$$replace = true;