diff --git a/docs/codeql/codeql-language-guides/customizing-library-models-for-rust.rst b/docs/codeql/codeql-language-guides/customizing-library-models-for-rust.rst index 56a9a063de6..7057812b31f 100644 --- a/docs/codeql/codeql-language-guides/customizing-library-models-for-rust.rst +++ b/docs/codeql/codeql-language-guides/customizing-library-models-for-rust.rst @@ -74,7 +74,7 @@ Canonical paths take the following forms: - **Free functions**: ``crate::module::function``, for example ``std::env::var`` or ``std::fs::read_to_string``. - **Inherent methods**: ``::method``, for example ``::open``. - **Trait methods with a concrete type**: ``::method``, for example ``::read_to_end``. -- **Trait methods with a wildcard type**: ``<_ as Trait>::method``, for example ``<_ as core::clone::Clone>::clone``. This form matches any type that implements the trait and is useful for modeling broadly applicable trait methods. +- **Trait methods with a wildcard type**: ``<_ as Trait>::method``, for example ``<_ as core::clone::Clone>::clone``. This form matches any type that implements the trait and is useful for modeling broadly applicable trait methods. For a type that has a specific model (::method), that model will take precedence over the trait model. Examples of custom model definitions -------------------------------------