From 5248cf5c973301837cf73d6253cd2a4cfaf78e67 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Fri, 7 Jun 2024 17:20:30 +0200 Subject: [PATCH] docs: link magic to pre_assert for the enum variant selection --- binrw/doc/attribute.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/binrw/doc/attribute.md b/binrw/doc/attribute.md index aee9ca3f..986723c1 100644 --- a/binrw/doc/attribute.md +++ b/binrw/doc/attribute.md @@ -1708,6 +1708,9 @@ object.write_le(&mut output) ``` +Note the alternative approach for the enum variant selection is [`pre_assert`](#pre-assert) directive +(where the [`argument`](#arguments)-based variant selection is supported). +
## Errors