mirror of
https://github.com/l1npengtul/nokhwa.git
synced 2026-07-04 02:27:26 +00:00
Merge pull request #89 from marc2332/patch-1
fix: Fixed some typos from the readme
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user