Add some comments.

Also use `Default::default()` in one `TypedArena::default()`, for
consistency with `DroplessArena::default()`.
This commit is contained in:
Nicholas Nethercote 2021-11-16 09:49:15 +11:00
parent 552073701f
commit 0a89598dbd
3 changed files with 14 additions and 5 deletions

View file

@ -1,4 +1,4 @@
/// This declares a list of types which can be allocated by `Arena`.
/// This higher-order macro declares a list of types which can be allocated by `Arena`.
///
/// Specifying the `decode` modifier will add decode impls for `&T` and `&[T]` where `T` is the type
/// listed. These impls will appear in the implement_ty_decoder! macro.