Skip to content

Commit

Permalink
docs: not all capsule are modules attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
wjones127 committed Nov 18, 2023
1 parent be7c625 commit c423ff6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/types/capsule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ impl PyCapsule {

/// Imports an existing capsule.
///
/// The `name` should match the path to the module attribute exactly in the form
/// of `"module.attribute"`, which should be the same as the name within the capsule.
/// If this capsule represents a module attribute, the `name` should match the path
/// to the module attribute exactly in the form of `"module.attribute"`, which should
/// be the same as the name within the capsule.
///
/// # Safety
///
Expand All @@ -140,8 +141,9 @@ impl PyCapsule {

/// Imports an existing capsule, returning a mutable reference to the value.
///
/// The `name` should match the path to the module attribute exactly in the form
/// of `"module.attribute"`, which should be the same as the name within the capsule.
/// If this capsule represents a module attribute, the `name` should match the path
/// to the module attribute exactly in the form of `"module.attribute"`, which should
/// be the same as the name within the capsule.
///
/// # Safety
///
Expand Down

0 comments on commit c423ff6

Please sign in to comment.