Skip to content

Commit

Permalink
Change Value::Reference docs
Browse files Browse the repository at this point in the history
  • Loading branch information
doonv committed Jan 11, 2024
1 parent 85a737f commit bf8727c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/builtin_parser/runner/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ pub enum Value {
/// A reference.
///
/// References are very similar to rust's ownership and borrowing.
/// We achieve this by storing every variable as a [`UniqueRc<T>`](super::unique_rc::UniqueRc)
/// (which is essentially just [`Rc<RefCell<T>>`]
/// but having only the owner of the value have a strong reference,
/// while every other value has a weak reference. This causes
/// We achieve this by storing every variable as a [`UniqueRc<T>`]
/// (which is essentially just [`Rc<RefCell<T>>`] but having only
/// the owner of the value have a strong reference, while every
/// other value has a weak reference. This causes
/// [`Rc::try_unwrap`] to succeed every time)
Reference(WeakRef<Value>),
/// A dynamic [`HashMap`].
Expand Down

0 comments on commit bf8727c

Please sign in to comment.