about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKonrad Borowski <konrad@borowski.pw>2020-12-28 09:29:42 +0100
committerKonrad Borowski <konrad@borowski.pw>2020-12-28 09:29:42 +0100
commitb3be9e10926f75740f0a5d126e8c8532d2c76ed2 (patch)
treeb3c9b052544d629a86c0f32bf48eb071b7b9d270
parent6c523a7a0ef121fe97ad6a367a3f3b92f80dc3f0 (diff)
downloadrust-b3be9e10926f75740f0a5d126e8c8532d2c76ed2.tar.gz
rust-b3be9e10926f75740f0a5d126e8c8532d2c76ed2.zip
Add "chr" as doc alias to char::from_u32
-rw-r--r--library/core/src/char/convert.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/char/convert.rs b/library/core/src/char/convert.rs
index 394db5b5917..de05a8c82e8 100644
--- a/library/core/src/char/convert.rs
+++ b/library/core/src/char/convert.rs
@@ -47,6 +47,7 @@ use super::MAX;
 ///
 /// assert_eq!(None, c);
 /// ```
+#[doc(alias = "chr")]
 #[inline]
 #[stable(feature = "rust1", since = "1.0.0")]
 pub fn from_u32(i: u32) -> Option<char> {