Fix broken markdown in docstring

This commit is contained in:
Emil Ernerfeldt 2021-04-15 09:48:06 +02:00
parent 96a2732735
commit e1adb9c091

View file

@ -294,7 +294,7 @@ impl Storage for DummyStorage {
fn flush(&mut self) {}
}
/// Get an deserialize the [RON](https://github.com/ron-rs/ron] stored at the given key.
/// Get an deserialize the [RON](https://github.com/ron-rs/ron) stored at the given key.
#[cfg(feature = "ron")]
pub fn get_value<T: serde::de::DeserializeOwned>(storage: &dyn Storage, key: &str) -> Option<T> {
storage
@ -302,7 +302,7 @@ pub fn get_value<T: serde::de::DeserializeOwned>(storage: &dyn Storage, key: &st
.and_then(|value| ron::from_str(&value).ok())
}
/// Serialize the given value as [RON](https://github.com/ron-rs/ron] and store with the given key.
/// Serialize the given value as [RON](https://github.com/ron-rs/ron) and store with the given key.
#[cfg(feature = "ron")]
pub fn set_value<T: serde::Serialize>(storage: &mut dyn Storage, key: &str, value: &T) {
storage.set_string(