From 45fc24846dd9b05fe73f73156c921abd62d495dd Mon Sep 17 00:00:00 2001 From: Erik Smith Date: Sat, 28 Mar 2020 14:09:55 -0600 Subject: [PATCH] Modified comment parameter in 'NYTPhotosViewController' and 'NYTPhotoViewerSinglePhotoDataSource' to match parameter in signature. Removes compilation warning. --- CHANGELOG.md | 1 + NYTPhotoViewer/NYTPhotoViewerSinglePhotoDataSource.h | 2 +- NYTPhotoViewer/NYTPhotosViewController.h | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 99832fd5..38f4398b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ Changes for users of the library currently on `develop`: - Removed `FLAnimatedImage` from .gitmodules. - Change `NYTPhotosViewController` to use fullscreen presentation by default, so it causes the presenting view to disappear behind it, i.e. to get `-viewWillDisappear:` and `-viewDidDisappear` called on it. +- Modified comment parameter in `NYTPhotosViewController` and `NYTPhotoViewerSinglePhotoDataSource` to match parameter in signature. Removes compilation warning. ## [4.0.0](https://github.com/nytimes/NYTPhotoViewer/releases/tag/4.0.0) diff --git a/NYTPhotoViewer/NYTPhotoViewerSinglePhotoDataSource.h b/NYTPhotoViewer/NYTPhotoViewerSinglePhotoDataSource.h index 65edcc56..4d4e15c7 100644 --- a/NYTPhotoViewer/NYTPhotoViewerSinglePhotoDataSource.h +++ b/NYTPhotoViewer/NYTPhotoViewerSinglePhotoDataSource.h @@ -22,7 +22,7 @@ NS_ASSUME_NONNULL_BEGIN /** * The designated initializer that takes and stores a single photo. * - * @param photos An object conforming to the `NYTPhoto` protocol. + * @param photo An object conforming to the `NYTPhoto` protocol. * * @return A fully initialized data source. */ diff --git a/NYTPhotoViewer/NYTPhotosViewController.h b/NYTPhotoViewer/NYTPhotosViewController.h index d1cafcc7..18dd30fd 100644 --- a/NYTPhotoViewer/NYTPhotosViewController.h +++ b/NYTPhotoViewer/NYTPhotosViewController.h @@ -146,7 +146,7 @@ extern NSString * const NYTPhotosViewControllerDidDismissNotification; * * This method has no effect if the given index is out of bounds in the data source. * - * @param photo The index of the photo which changed in the data source. + * @param photoIndex The index of the photo which changed in the data source. */ - (void)updatePhotoAtIndex:(NSInteger)photoIndex;