Skip to content

Commit

Permalink
Add doc comment
Browse files Browse the repository at this point in the history
forgot to save before committing 89f20d2
  • Loading branch information
wez committed Mar 17, 2022
1 parent 3028ee4 commit deb7594
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,9 @@ where
deserializer.deserialize_any(Number)
}

/// Helper for deserializing a Vec<T> from lua code.
/// In lua, `{}` could be either an empty map or an empty vec.
/// This helper allows an empty map to be specified and treated as an empty vec.
pub fn de_vec_table<'de, D, T>(deserializer: D) -> Result<Vec<T>, D::Error>
where
D: Deserializer<'de>,
Expand Down

0 comments on commit deb7594

Please sign in to comment.