sys_util: Ignore struct_util doc comment

The code in the doc comment didn't compile, fix the missing command.
Ignore the snippet because it depends on arch::__IncompleteArrayField,
and getting it to compile isn't worth adding a crate dependency.

Signed-off-by: Dylan Reid <dgreid@chromium.org>
Change-Id: Ibaee50d0d44fbfb9ca2862b1dda220a0a1e5696b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1944097
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Zach Reizner <zachr@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Dylan Reid 2019-12-02 13:50:10 +11:00
parent 1a5fe95471
commit 38b9ad8620

View file

@ -18,10 +18,10 @@ fn vec_with_size_in_bytes<T: Default>(size_in_bytes: usize) -> Vec<T> {
/// The kvm API has many structs that resemble the following `Foo` structure:
///
/// ```
/// ```ignore
/// #[repr(C)]
/// struct Foo {
/// some_data: u32
/// some_data: u32,
/// entries: __IncompleteArrayField<__u32>,
/// }
/// ```