diff --git a/primitives/duniter/src/lib.rs b/primitives/duniter/src/lib.rs
index 00f657bff42825ce247d4583d99cef61a6168828..0dccbe9d79abdcaa5b9b6be2a57b2e1b9ab6d68b 100644
--- a/primitives/duniter/src/lib.rs
+++ b/primitives/duniter/src/lib.rs
@@ -16,12 +16,10 @@
 
 #![cfg_attr(not(feature = "std"), no_std)]
 
-/// Rules for valid identity names are defined below
-/// - Bound length to 42
-/// - accept only ascii alphanumeric or - or _
+/// Checks rules for valid identity names
+/// - Limit length to 42
+/// - Accept only ascii alphanumeric or `-` or `_`
 pub fn validate_idty_name(idty_name: &[u8]) -> bool {
-    // length smaller than 42
-    // all characters are alphanumeric or - or _
     idty_name.len() >= 3
         && idty_name.len() <= 42
         && idty_name