Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
14b37512
Unverified
Commit
14b37512
authored
Jan 13, 2021
by
Andy Maloney
Committed by
GitHub
Jan 13, 2021
Browse files
docs: fix example code in Exceptions section (match vs. matches) (#2781)
parent
210c8c21
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/advanced/exceptions.rst
docs/advanced/exceptions.rst
+1
-1
No files found.
docs/advanced/exceptions.rst
View file @
14b37512
...
...
@@ -196,7 +196,7 @@ For example:
} catch (py::error_already_set &e) {
if (e.matches(PyExc_FileNotFoundError)) {
py::print("missing.txt not found");
} else if (e.match(PyExc_PermissionError)) {
} else if (e.match
es
(PyExc_PermissionError)) {
py::print("missing.txt found but not accessible");
} else {
throw;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment