Merge pull request #89 from marc2332/patch-1

fix: Fixed some typos from the readme
This commit is contained in:
l1npengtul
2023-01-08 21:55:45 +09:00
committed by GitHub
+2 -2
View File
@@ -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::<RgbFormat>::new(RequestedFormatType::AbsoluteHighestFrameRate);
let requested = RequestedFormat::new::<RgbFormat>(RequestedFormatType::AbsoluteHighestFrameRate);
// make the camera
let mut camera = Camera::new(index, requested).unwrap();