From 7384294e94d8c1fef972f7922846b5a1f4da2edc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Esp=C3=ADn?= Date: Sun, 8 Jan 2023 13:32:53 +0100 Subject: [PATCH] fix: Fixed some typos from the readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d53ed19..9f7b5fb 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,9 @@ Most likely, you will only use functionality provided by the `Camera` struct. If ## Example ```rust // first camera in system -let index = CameraIndex::index(0); +let index = CameraIndex::Index(0); // request the absolute highest resolution CameraFormat that can be decoded to RGB. -let requested = RequestedFormat::::new(RequestedFormatType::AbsoluteHighestFrameRate); +let requested = RequestedFormat::new::(RequestedFormatType::AbsoluteHighestFrameRate); // make the camera let mut camera = Camera::new(index, requested).unwrap();