diff --git a/README.md b/README.md index d2303f6c2bc41c4e1ea1a4203b9958668e3d9c1b..6b453e211739159034c927f1740e05a994c57af0 100644 --- a/README.md +++ b/README.md @@ -219,25 +219,25 @@ ___ #### **`getMultiDayStepCounts`** get the total steps per day over a specified date range. -`getMultiDayStepCounts` accepts an options object containing *`startDate: ISO8601Timestamp`*, and optional *`endDate: ISO8601Timestamp`* fields. if `endDate` is not provided it will default to the current time +`getMultiDayStepCounts` accepts an options object containing required *`startDate: ISO8601Timestamp`* and optional *`endDate: ISO8601Timestamp`*. if `endDate` is not provided it will default to the current time ```javascript let options = { startDate: (new Date(2016,5,1)).toISOString() // required endDate: (new Date()).toISOString() // optional; default now }; ``` -The function will be called with an array of elements `res` containing date and step count information +the function will be called with an array of elements `res` containing date and step count information ```javascript AppleHealthKit.getMultiDayStepCounts(options, (err: Object, res: Array>) => { if(this._handleHealthKitError(err, 'getMultiDayStepCounts')){ return; } // 'res' is array of [ISOTimestamp: string, stepCount: number] arrays - // sorted ascending from startDate through endDate (default now) + // sorted ascending from startDate through endDate for(let i=0; i