Skip to content

Commit 13c11f8

Browse files
authored
[layout] Update test documentation (#2026)
gherrit-pr-id: I8aec00c4246e0e9f80c90c3295ffd79921d4d8b3
1 parent ace5bb0 commit 13c11f8

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/layout.rs

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -797,16 +797,15 @@ mod tests {
797797

798798
/// This macro accepts arguments in the form of:
799799
///
800-
/// layout(_, _, _).validate(_, _, _), Ok(Some((_, _)))
801-
/// | | | | | | | |
802-
/// base_size ----+ | | | | | | |
803-
/// align -----------+ | | | | | |
804-
/// trailing_size ------+ | | | | |
805-
/// addr ---------------------------+ | | | |
806-
/// bytes_len -------------------------+ | | |
807-
/// cast_type ----------------------------+ | |
808-
/// elems ---------------------------------------------+ |
809-
/// split_at ---------------------------------------------+
800+
/// layout(_, _).validate(_, _, _), Ok(Some((_, _)))
801+
/// | | | | | | |
802+
/// size ---------+ | | | | | |
803+
/// align -----------+ | | | | |
804+
/// addr ------------------------+ | | | |
805+
/// bytes_len ----------------------+ | | |
806+
/// cast_type -------------------------+ | |
807+
/// elems ------------------------------------------+ |
808+
/// split_at ------------------------------------------+
810809
///
811810
/// `.validate` is shorthand for `.validate_cast_and_convert_metadata`
812811
/// for brevity.
@@ -839,7 +838,7 @@ mod tests {
839838
/// `a..b`). In this case, wrap the expression in parentheses, and it
840839
/// will become valid `tt`.
841840
macro_rules! test {
842-
($(:$sizes:expr =>)?
841+
(
843842
layout($size:tt, $align:tt)
844843
.validate($addr:tt, $bytes_len:tt, $cast_type:tt), $expect:pat $(,)?
845844
) => {

0 commit comments

Comments
 (0)