From c7980899237ea2b0f7dd9fa6fc2897f60adc840e Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Mon, 23 Aug 2021 15:34:35 +0100 Subject: simple-cam: Improve documentation of validate/configure The validation and configure phase has a couple of grammatical errors. Fix them and reflow the text accordingly. Reviewed-by: Jacopo Mondi Reviewed-by: Paul Elder Reviewed-by: Laurent Pinchart Signed-off-by: Kieran Bingham --- simple-cam.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/simple-cam.cpp b/simple-cam.cpp index 5c16db6..2e646a5 100644 --- a/simple-cam.cpp +++ b/simple-cam.cpp @@ -255,16 +255,17 @@ int main() #endif /* - * Validating a CameraConfiguration -before- applying it adjust it - * to a valid configuration as closest as possible to the requested one. + * Validating a CameraConfiguration -before- applying it will adjust it + * to a valid configuration which is as close as possible to the one + * requested. */ config->validate(); std::cout << "Validated viewfinder configuration is: " << streamConfig.toString() << std::endl; /* - * Once we have a validate configuration, we can apply it - * to the Camera. + * Once we have a validated configuration, we can apply it to the + * Camera. */ camera->configure(config.get()); -- cgit v1.2.1