From ef0aef009cc26422dd594c54d2e2f252786a3683 Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Tue, 17 May 2022 19:48:40 +0100 Subject: [PATCH] docs: fix nightly build --- src/exceptions.rs | 4 ++-- src/instance.rs | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/exceptions.rs b/src/exceptions.rs index d8d65de52ee..d0d5119160c 100644 --- a/src/exceptions.rs +++ b/src/exceptions.rs @@ -5,8 +5,8 @@ //! The structs in this module represent Python's built-in exceptions, while the modules comprise //! structs representing errors defined in Python code. //! -//! The latter are created with the [`import_exception`] macro, which you can use yourself -//! to import Python exceptions. +//! The latter are created with the [`import_exception`](crate::import_exception) macro, which you +//! can use yourself to import Python exceptions. use crate::{ffi, PyResult, Python}; use std::ffi::CStr; diff --git a/src/instance.rs b/src/instance.rs index a8c0997bf1f..fcf4f5c2537 100644 --- a/src/instance.rs +++ b/src/instance.rs @@ -535,8 +535,9 @@ impl Py { /// /// This is equivalent to the Python expression `self.attr_name`. /// - /// If calling this method becomes performance-critical, the [`intern!`] macro can be used - /// to intern `attr_name`, thereby avoiding repeated temporary allocations of Python strings. + /// If calling this method becomes performance-critical, the [`intern!`](crate::intern) macro + /// can be used to intern `attr_name`, thereby avoiding repeated temporary allocations of + /// Python strings. /// /// # Example: `intern!`ing the attribute name /// @@ -566,8 +567,8 @@ impl Py { /// /// This is equivalent to the Python expression `self.attr_name = value`. /// - /// If calling this method becomes performance-critical, the [`intern!`] macro can be used - /// to intern `attr_name`, thereby avoiding repeated temporary allocations of Python strings. + /// To avoid repeated temporary allocations of Python strings, the [`intern!`](crate::intern) + /// macro can be used to intern `attr_name`. /// /// # Example: `intern!`ing the attribute name ///