From e0ced166db323cffd179c95a45f97510d6eca626 Mon Sep 17 00:00:00 2001 From: eugenesvk Date: Mon, 9 Oct 2023 03:34:53 +0700 Subject: [PATCH] Update AssociatedConstant example to refer to a const generic --- src/rustdoc_schema.graphql | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/rustdoc_schema.graphql b/src/rustdoc_schema.graphql index 0825619..bc01cf8 100644 --- a/src/rustdoc_schema.graphql +++ b/src/rustdoc_schema.graphql @@ -939,13 +939,13 @@ type AssociatedConstant implements Item { ```rust const fn five() -> i32 { 5 }; struct Years(i32); - trait MyTrait { // rustdocs default field - const MIN : usize = 16 ; // `"16"` - const MIN_SIZE: usize = MIN ; // `"MIN"`, referring to the other constant's name - const LOG_AS : &'static str = "batch" ; // `"\"batch\""`, including escaped quotes - const EXPR2_2 : i32 = 2+2 ; // `"_"` - const FN_FIVE : i32 = five() ; // `"_"` - const YEAR : Years = Years(42); // `"_"` + trait MyTrait { // rustdocs default field + const NUM : i32 = 16 ; // 16 + const MIN_SIZE: usize = MIN ; // "MIN", referring to the other constant's name + const LOG_AS : &'static str = "batch" ; // "\"batch\"", including escaped quotes + const EXPR2_2 : i32 = 2+2 ; // "_" + const FN_FIVE : i32 = five() ; // "_" + const YEAR : Years = Years(42); // "_" } ```