From 904022257044d8471afc8b14c4b78d8fb1c309f4 Mon Sep 17 00:00:00 2001 From: alemi Date: Sun, 10 Sep 2023 03:06:47 +0200 Subject: [PATCH] docs: fix references --- src/buffer/controller.rs | 2 +- src/client.rs | 4 ++-- src/lib.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/buffer/controller.rs b/src/buffer/controller.rs index 0e65583..4dcad19 100644 --- a/src/buffer/controller.rs +++ b/src/buffer/controller.rs @@ -24,7 +24,7 @@ use super::TextChange; /// queues, transforming outbound delayed ops and applying remote changes /// to the local buffer /// -/// this controller implements [crate::buffer::OperationFactory], allowing to produce +/// this controller implements [crate::api::OperationFactory], allowing to produce /// Operation Sequences easily /// /// upon dropping this handle will stop the associated worker diff --git a/src/client.rs b/src/client.rs index 99a7194..1947856 100644 --- a/src/client.rs +++ b/src/client.rs @@ -122,9 +122,9 @@ impl Client { /// /// to interact with such buffer [crate::api::Controller::send] operation sequences /// or [crate::api::Controller::recv] for text events using its [crate::buffer::Controller]. - /// to generate operation sequences use the [crate::buffer::OperationFactory] + /// to generate operation sequences use the [crate::api::OperationFactory] /// methods, which are implemented on [crate::buffer::Controller], such as - /// [crate::buffer::OperationFactory::delta]. + /// [crate::api::OperationFactory::delta]. pub async fn attach(&mut self, path: &str) -> Result, Error> { if let Some(workspace) = &mut self.workspace { let mut client = self.client.buffer.clone(); diff --git a/src/lib.rs b/src/lib.rs index 515af53..4a48d0c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -21,7 +21,7 @@ //! be applied on buffers of some length and are transformable to be able to be //! applied in a different order while maintaining the same result. //! -//! To generate Operation Sequences use helper methods from module [buffer::factory] (trait [buffer::OperationFactory]). +//! To generate Operation Sequences use helper methods from module [api::factory] (trait [api::OperationFactory]). //! //! ## features //! * `proto` : include GRCP protocol definitions under [proto] (default enabled)