Skip to content

Commit

Permalink
Update documentation of Partial
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Dec 14, 2022
1 parent 4bc940d commit 2d0ecd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/fj-kernel/src/partial/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl<T: HasPartial + 'static> Partial<T> {
/// # Panics
///
/// Panics, if this method is called while the return value from a previous
/// call is still borrowed.
/// call to this method of [`Self::read`] is still borrowed.
pub fn write(&mut self) -> impl DerefMut<Target = T::Partial> + '_ {
let mut inner = self.inner.write();

Expand All @@ -91,7 +91,7 @@ impl<T: HasPartial + 'static> Partial<T> {
///
/// # Panics
///
/// Panics, if a return value of [`Self::write`] is still borrowed.
/// Panics, if a call to [`Self::write`] would panic.
pub fn build(self, objects: &mut Service<Objects>) -> Handle<T>
where
T: Insert,
Expand Down

0 comments on commit 2d0ecd8

Please sign in to comment.