Move gear: the marker getter names the direct-write exception too (#11381)

Doc only: the getter's comment now says, as the field's does, that a direct write to DocState::active_layer through active_mut() bypasses the change marker.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
Trevor BrownandClaude Fable 5.1 committed 2026-11-06 14:40:19 -05:00
1 parent 2e4ced2469
commit d8bce6b97d
1 file changed
+4 -3
+4 -3
View File
@@ -43,9 +43,10 @@ impl Session {
self.active_generation
}
/// Change marker: advances at least once whenever the active document or layer changes, by any
/// path. Compare two readings for equality to know whether anything changed in between; it is
/// not an exact count of operations.
/// Change marker: advances at least once whenever the active document or layer changes through
/// the `Session` API (see the field). Compare two readings for equality to know whether anything
/// changed in between; it is not an exact count of operations. A direct write to
/// `DocState::active_layer` through `active_mut()` bypasses it.
pub fn active_layer_changes(&self) -> u64 {
self.active_layer_changes
}