Skip to content

Commit

Permalink
Fix new doc warnings in nightly
Browse files Browse the repository at this point in the history
Closes #266.
  • Loading branch information
marxin authored and csnover committed Jul 5, 2024
1 parent 0ef2421 commit f607832
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions binrw/doc/attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <span class="br">read</span><span class="bw">write</span> 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
Expand Down Expand Up @@ -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)]
Expand Down

0 comments on commit f607832

Please sign in to comment.