From 8abd3b93c985700746f76ee461c95cf69b80fbfe Mon Sep 17 00:00:00 2001 From: Florin Coada Date: Wed, 13 May 2026 11:44:43 +0100 Subject: [PATCH] Update docs/codeql/codeql-language-guides/customizing-library-models-for-rust.rst Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com> --- .../customizing-library-models-for-rust.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -------------------------------------