1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-22 13:16:39 +03:00

Add doc comment

forgot to save before committing 89f20d265f
This commit is contained in:
Wez Furlong 2022-03-17 09:48:36 -07:00
parent 3028ee4cdd
commit deb7594eb5

View File

@ -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>,