From b1c57cd4e6ff4677f58de25f18a3543cd91bf542 Mon Sep 17 00:00:00 2001 From: Zach Krzyzanowski Date: Mon, 20 Jun 2022 11:40:58 -0400 Subject: [PATCH] fix case on type attribute in prost-build documentation (#668) Co-authored-by: Lucio Franco --- prost-build/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prost-build/src/lib.rs b/prost-build/src/lib.rs index 9275c5ac4..a30940bd1 100644 --- a/prost-build/src/lib.rs +++ b/prost-build/src/lib.rs @@ -445,9 +445,9 @@ impl Config { /// config.type_attribute(".", "#[derive(Eq)]"); /// // Some messages want to be serializable with serde as well. /// config.type_attribute("my_messages.MyMessageType", - /// "#[derive(Serialize)] #[serde(rename-all = \"snake_case\")]"); + /// "#[derive(Serialize)] #[serde(rename_all = \"snake_case\")]"); /// config.type_attribute("my_messages.MyMessageType.MyNestedMessageType", - /// "#[derive(Serialize)] #[serde(rename-all = \"snake_case\")]"); + /// "#[derive(Serialize)] #[serde(rename_all = \"snake_case\")]"); /// ``` /// /// # Oneof fields