diff options
author | Martin Fischer <martin@push-f.com> | 2023-08-31 04:51:24 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-09-03 23:00:05 +0200 |
commit | 0c28d7e957fd918d72f4e984533751cacd917e06 (patch) | |
tree | 1b18569cc6374ecb3ad9b21a8ce12af81813a233 | |
parent | 6763f3564a4640130e297c1f775e2c77f03dae89 (diff) |
//: fix outdated internal doc comment
-rw-r--r-- | src/attr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/attr.rs b/src/attr.rs index 2330cf8..f7161cf 100644 --- a/src/attr.rs +++ b/src/attr.rs @@ -33,8 +33,8 @@ pub(crate) struct AttrInternal<O> { /// The start offset of the attribute name. pub name_offset: O, /// The start offset of the attribute value. - /// For the empty attribute syntax this is just `S::Offset::default()`. - /// We intentionally don't use `Option<S::Offset>` here to spare us a byte per attribute. + /// For the empty attribute syntax this is just `O::default()`. + /// We intentionally don't use `Option<O>` here to spare us a byte (and padding) per attribute. pub value_offset: O, pub value_syntax: Option<AttrValueSyntax>, } |