forge
Explore
Log in

Don't you dare go Hollow

Crate doctest compiles again (hidden fn item defeated rustdoc main-wrapping)

Browse files at this commit

6f271279890822588681dc18ab24abd9f21659cdAhmet Kaan GümüşParent: 4ee94f3
  • fix
    • crate doctest compiles again (hidden fn item defeated rustdoc main-wrapping)
Show full message
fix(ec-hw): crate doctest compiles again (hidden fn item defeated rustdoc main-wrapping)
crates/ec-hw/src/lib.rsmodified+1 -1
@@ -11,12 +11,12 @@
1111 //!
1212 //! let display = ec_va::Display::open()?;
1313 //! let mut decoder = Decoder::new(&display, Codec::H264)?;
14+//! # let annex_b_access_unit: &[u8] = &[];
1415 //! decoder.decode(annex_b_access_unit, 0)?;
1516 //! while let Some(frame) = decoder.next_frame() {
1617 //! let planes = frame.to_i420()?; // or frame.export_prime() for zero copy
1718 //! }
1819 //! # Ok::<(), ec_hw::Error>(())
19-//! # fn annex_b_access_unit() -> &'static [u8] { &[] }
2020 //! ```
2121 //!
2222 //! # Shape