Fix tests

Co-Authored-By: Yuji Kanagawa <yuji.kngw.80s.revive@gmail.com>
This commit is contained in:
Georg Brandl 2020-03-17 16:49:48 +01:00 committed by GitHub
parent 77b1ae3137
commit b7d5f9097b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -75,13 +75,13 @@ impl PyErr {
/// Panics if `T` is not a Python class derived from `BaseException`.
///
/// Example:
/// ```
/// ```ignore
/// return Err(PyErr::new::<exceptions::TypeError, _>("Error message"));
/// ```
///
/// In most cases, you can use a concrete exception's constructors instead:
/// the example is equivalent to
/// ```
/// ```ignore
/// return Err(exceptions::TypeError::py_err("Error message"));
/// return exceptions::TypeError::into("Error message");
/// ```