docs: fix references

This commit is contained in:
əlemi 2023-09-10 03:06:47 +02:00
parent 56dcf99778
commit 9040222570
3 changed files with 4 additions and 4 deletions

View file

@ -24,7 +24,7 @@ use super::TextChange;
/// queues, transforming outbound delayed ops and applying remote changes /// queues, transforming outbound delayed ops and applying remote changes
/// to the local buffer /// 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 /// Operation Sequences easily
/// ///
/// upon dropping this handle will stop the associated worker /// upon dropping this handle will stop the associated worker

View file

@ -122,9 +122,9 @@ impl Client {
/// ///
/// to interact with such buffer [crate::api::Controller::send] operation sequences /// to interact with such buffer [crate::api::Controller::send] operation sequences
/// or [crate::api::Controller::recv] for text events using its [crate::buffer::Controller]. /// 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 /// 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<Arc<BufferController>, Error> { pub async fn attach(&mut self, path: &str) -> Result<Arc<BufferController>, Error> {
if let Some(workspace) = &mut self.workspace { if let Some(workspace) = &mut self.workspace {
let mut client = self.client.buffer.clone(); let mut client = self.client.buffer.clone();

View file

@ -21,7 +21,7 @@
//! be applied on buffers of some length and are transformable to be able to be //! 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. //! 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 //! ## features
//! * `proto` : include GRCP protocol definitions under [proto] (default enabled) //! * `proto` : include GRCP protocol definitions under [proto] (default enabled)