Fix tests
Co-Authored-By: Yuji Kanagawa <yuji.kngw.80s.revive@gmail.com>
This commit is contained in:
parent
77b1ae3137
commit
b7d5f9097b
|
@ -75,13 +75,13 @@ impl PyErr {
|
||||||
/// Panics if `T` is not a Python class derived from `BaseException`.
|
/// Panics if `T` is not a Python class derived from `BaseException`.
|
||||||
///
|
///
|
||||||
/// Example:
|
/// Example:
|
||||||
/// ```
|
/// ```ignore
|
||||||
/// return Err(PyErr::new::<exceptions::TypeError, _>("Error message"));
|
/// return Err(PyErr::new::<exceptions::TypeError, _>("Error message"));
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// In most cases, you can use a concrete exception's constructors instead:
|
/// In most cases, you can use a concrete exception's constructors instead:
|
||||||
/// the example is equivalent to
|
/// the example is equivalent to
|
||||||
/// ```
|
/// ```ignore
|
||||||
/// return Err(exceptions::TypeError::py_err("Error message"));
|
/// return Err(exceptions::TypeError::py_err("Error message"));
|
||||||
/// return exceptions::TypeError::into("Error message");
|
/// return exceptions::TypeError::into("Error message");
|
||||||
/// ```
|
/// ```
|
||||||
|
|
Loading…
Reference in New Issue