Add some comments (#1225)

This commit is contained in:
Jonathan Turner
2020-01-14 20:38:56 +13:00
committed by GitHub
parent 3adf52b1c4
commit b32eceffb3
6 changed files with 43 additions and 0 deletions

View File

@ -304,6 +304,7 @@ impl serde::de::Error for ShellError {
}
impl ShellError {
/// An error that describes a mismatch between the given type and the expected type
pub fn type_error(
expected: impl Into<String>,
actual: Spanned<impl Into<String>>,