diff --git a/binrw/doc/attribute.md b/binrw/doc/attribute.md index 544b9e9d..91eb8eb0 100644 --- a/binrw/doc/attribute.md +++ b/binrw/doc/attribute.md @@ -117,8 +117,8 @@ Glossary of directives in binrw attributes (`#[br]`, `#[bw]`, `#[brw]`). | rw | [`stream`](#stream-access-and-manipulation) | struct, non-unit enum, unit-like enum | Exposes the underlying readwrite stream. | r | [`temp`](#temp) | field | Uses a field as a temporary variable. Only usable with the [`binread`](macro@crate::binread) attribute macro. | r | [`try`](#try) | field | Tries to parse and stores the [`default`](core::default::Default) value for the type if parsing fails instead of returning an error. -| rw | [`try_calc`](#calculations) | field | Like `calc`, but returns a [`Result`](Result). -| rw | [`try_map`](#map) | all except unit variant | Like `map`, but returns a [`Result`](Result). +| rw | [`try_calc`](#calculations) | field | Like `calc`, but returns a [`Result`]. +| rw | [`try_map`](#map) | all except unit variant | Like `map`, but returns a [`Result`]. | w | [`write_with`](#custom-parserswriters) | field | Specifies a custom function for writing a field. [*]: #terminology @@ -1517,7 +1517,7 @@ if let binrw::Error::NoVariantMatch { pos } = error { For [`BinRead`](crate::BinRead), the `ignore` directive, and its alias `default`, sets the value of the field to its -[`Default`](core::default::Default) instead of reading data from the reader: +[`Default`] instead of reading data from the reader: ```text #[br(default)] or #[br(ignore)]