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();