Skip to content

Commit da88268

Browse files
coadafloringeoffw0
andauthored
Update docs/codeql/codeql-language-guides/customizing-library-models-for-rust.rst
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com>
1 parent af32ae2 commit da88268

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/codeql/codeql-language-guides/customizing-library-models-for-rust.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ The following tokens are commonly used:
532532
- **Parameter[**\ ``n``\ **]** selects the ``n``-th parameter of a callback. May be a range of the form ``x..y`` (inclusive) and/or a comma-separated list.
533533
- **ReturnValue** selects the return value of a function call.
534534
- **Element** selects an element in a collection (such as a ``Vec``, ``HashMap``, or iterator).
535-
- **Field[**\ ``type::field``\ **]** selects a named field of a struct or enum variant. For example, ``Field[core::option::Option::Some(0)]`` selects the first positional field of the ``Some`` variant.
535+
- **Field[**\ ``type::field``\ **]** selects a named field of a struct or enum variant. For example, ``Field[ihex::Record::Data::value]`` selects the field ``value`` of the ``ihex::Record::Data`` variant.
536536
- **Field[**\ ``type(i)``\ **]** selects the ``i``-th positional field of a tuple struct or tuple enum variant. For example, ``Field[core::result::Result::Ok(0)]`` selects the value inside ``Ok``.
537537
- **Field[**\ ``i``\ **]** selects the ``i``-th element of a tuple.
538538
- **Reference** follows through a reference (``&T`` or ``&mut T``) to reach the referenced value.

0 commit comments

Comments
 (0)