@@ -389,7 +389,7 @@ pub fn is_currently_tracking() -> bool {
389389/// This structure erase the `B` type with a vtable.
390390#[ repr( C ) ]
391391struct BindingHolder < B = ( ) > {
392- /// Access to the list of binding which depends on this binding
392+ /// Access to the list of bindings which depend on this binding
393393 dependencies : Cell < usize > ,
394394 /// The binding own the nodes used in the dependencies lists of the properties
395395 /// From which we depend.
@@ -490,10 +490,10 @@ fn alloc_binding_holder<T, B: BindingCallable<T> + 'static>(binding: B) -> *mut
490490struct PropertyHandle {
491491 /// The handle can either be a pointer to a binding, or a pointer to the list of dependent properties.
492492 /// The two least significant bit of the pointer are flags, as the pointer will be aligned.
493- /// The least significant bit (`0b01`) tells that the binding is borrowed. So no two reference to the
493+ /// The least significant bit (`0b01`) tells that the binding is borrowed. So no two references to the
494494 /// binding exist at the same time.
495495 /// The second to last bit (`0b10`) tells that the pointer points to a binding. Otherwise, it is the head
496- /// node of the linked list of dependent binding
496+ /// node of the linked list of dependent bindings.
497497 handle : Cell < usize > ,
498498}
499499
@@ -511,12 +511,12 @@ impl core::fmt::Debug for PropertyHandle {
511511}
512512
513513impl PropertyHandle {
514- /// The lock flag specify that we can get reference to the Cell or unsafe cell
514+ /// The lock flag specifies that we can get a reference to the Cell or unsafe cell
515515 fn lock_flag ( & self ) -> bool {
516516 self . handle . get ( ) & 0b1 == 1
517517 }
518518 /// Sets the lock_flag.
519- /// Safety: the lock flag must not be unset if there exist reference to what's inside the cell
519+ /// Safety: the lock flag must not be unset if there exist references to what's inside the cell
520520 unsafe fn set_lock_flag ( & self , set : bool ) {
521521 self . handle . set ( if set { self . handle . get ( ) | 0b1 } else { self . handle . get ( ) & !0b1 } )
522522 }
@@ -779,9 +779,9 @@ impl<T, F: Fn() -> T> Binding<T> for F {
779779 }
780780}
781781
782- /// A Property that allow binding that track changes
782+ /// A Property that allows a binding that tracks changes
783783///
784- /// Property can have an assigned value, or binding.
784+ /// Property can have an assigned value, or a binding.
785785/// When a binding is assigned, it is lazily evaluated on demand
786786/// when calling `get()`.
787787/// When accessing another property from a binding evaluation,
0 commit comments