Skip to content

Commit ab19f31

Browse files
committed
fix doc aliases for 1.48
1 parent 12160f9 commit ab19f31

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/db.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const DEFAULT_TREE_ID: &[u8] = b"__sled__default";
1212
/// to disk, using the same method used by
1313
/// `Tree::flush`.
1414
#[derive(Clone)]
15-
#[doc(alias("database"))]
15+
#[doc(alias = "database")]
1616
pub struct Db {
1717
#[doc(hidden)]
1818
pub context: Context,

src/tree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ impl Tree {
153153
/// assert_eq!(db.insert(&[1, 2, 3], vec![1]), Ok(Some(sled::IVec::from(&[0]))));
154154
/// # Ok(()) }
155155
/// ```
156-
#[doc(alias("set"))]
156+
#[doc(alias = "set")]
157157
pub fn insert<K, V>(&self, key: K, value: V) -> Result<Option<IVec>>
158158
where
159159
K: AsRef<[u8]>,

0 commit comments

Comments
 (0)