From f6b489229fc0fd5d747da4ba7e7633982ee89046 Mon Sep 17 00:00:00 2001 From: Guillaume Desforges Date: Wed, 18 Jan 2023 22:48:01 +0100 Subject: [PATCH] update docstring --- pyckel/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyckel/src/lib.rs b/pyckel/src/lib.rs index 3550c56b..b2d44eee 100644 --- a/pyckel/src/lib.rs +++ b/pyckel/src/lib.rs @@ -11,7 +11,7 @@ use pyo3::{create_exception, exceptions::PyException, prelude::*}; create_exception!(pyckel, NickelException, PyException); -/// Turn a Nickel (Rust) error into a NickelException (Python) +/// Turn an internal Nickel error into a PyErr with a fancy diagnostic message fn error_to_exception, EC: Cache>(error: E, program: &mut Program) -> PyErr { NickelException::new_err(program.report_as_str(error.into())) }