Document Callable, Trap, HostRef, and ValType (#693)

This commit is contained in:
XAMPPRocky
2019-12-11 19:46:45 +01:00
committed by Alex Crichton
parent 0cc8c6c867
commit ddd2300010
5 changed files with 140 additions and 8 deletions

View File

@@ -8,7 +8,7 @@ fn test_trap_return() -> Result<(), String> {
impl Callable for HelloCallback {
fn call(&self, _params: &[Val], _results: &mut [Val]) -> Result<(), HostRef<Trap>> {
Err(HostRef::new(Trap::new("test 123".into())))
Err(HostRef::new(Trap::new("test 123")))
}
}