identifiers: Remove 'rust' from code blocks

This commit is contained in:
Andy Balaam 2024-11-02 11:12:32 +00:00 committed by strawberry
parent c471070933
commit 12f4a56ace

View File

@ -29,7 +29,7 @@ use super::{
/// ///
/// To parse a colon-separated identifier: /// To parse a colon-separated identifier:
/// ///
/// ```rust /// ```
/// use ruma_common::{DeviceId, DeviceKeyAlgorithm, KeyId, OwnedKeyId}; /// use ruma_common::{DeviceId, DeviceKeyAlgorithm, KeyId, OwnedKeyId};
/// ///
/// let k: OwnedDeviceKeyId = KeyId::parse("ed25519:1").unwrap(); /// let k: OwnedDeviceKeyId = KeyId::parse("ed25519:1").unwrap();
@ -39,7 +39,7 @@ use super::{
/// ///
/// To construct a colon-separated identifier from its parts: /// To construct a colon-separated identifier from its parts:
/// ///
/// ```rust /// ```
/// use ruma_common::{DeviceId, DeviceKeyAlgorithm, KeyId, OwnedKeyId}; /// use ruma_common::{DeviceId, DeviceKeyAlgorithm, KeyId, OwnedKeyId};
/// ///
/// let k: OwnedDeviceKeyId = KeyId::from_parts(DeviceKeyAlgorithm::Curve25519, "MYDEVICE".into()); /// let k: OwnedDeviceKeyId = KeyId::from_parts(DeviceKeyAlgorithm::Curve25519, "MYDEVICE".into());
@ -70,7 +70,7 @@ impl<A: KeyAlgorithm, K: KeyName + ?Sized> KeyId<A, K> {
/// ///
/// # Example /// # Example
/// ///
/// ```rust /// ```
/// use ruma_common::{DeviceId, DeviceKeyAlgorithm, KeyId, OwnedKeyId}; /// use ruma_common::{DeviceId, DeviceKeyAlgorithm, KeyId, OwnedKeyId};
/// ///
/// let k: OwnedDeviceKeyId = KeyId::parse("ed25519:1").unwrap(); /// let k: OwnedDeviceKeyId = KeyId::parse("ed25519:1").unwrap();
@ -84,7 +84,7 @@ impl<A: KeyAlgorithm, K: KeyName + ?Sized> KeyId<A, K> {
/// ///
/// # Example /// # Example
/// ///
/// ```rust /// ```
/// use ruma_common::{DeviceId, DeviceKeyAlgorithm, KeyId, OwnedKeyId}; /// use ruma_common::{DeviceId, DeviceKeyAlgorithm, KeyId, OwnedKeyId};
/// ///
/// let k: OwnedDeviceKeyId = KeyId::parse("ed25519:foo").unwrap(); /// let k: OwnedDeviceKeyId = KeyId::parse("ed25519:foo").unwrap();