Skip to content

Commit

Permalink
docs: fix various typos
Browse files Browse the repository at this point in the history
  • Loading branch information
qwdsds authored Jan 1, 2025
1 parent 7a33ef6 commit e6cff0f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rig-core/src/embeddings/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl<M: EmbeddingModel, T: Embed> EmbeddingsBuilder<M, T> {
Ok(self)
}

/// Add multiple documents to be embedded to the builder. `documents` must be iteratable
/// Add multiple documents to be embedded to the builder. `documents` must be iterable
/// with items that implement the [Embed] trait.
pub fn documents(self, documents: impl IntoIterator<Item = T>) -> Result<Self, EmbedError> {
let builder = documents
Expand Down
2 changes: 1 addition & 1 deletion rig-core/src/loaders/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl<'a> FileLoader<'a, Result<PathBuf, FileLoaderError>> {
/// [FileLoader::with_dir] and returns the path along with the content.
///
/// # Example
/// Read files in directory "files/*.txt" and print the content for cooresponding path for each
/// Read files in directory "files/*.txt" and print the content for corresponding path for each
/// file.
///
/// ```rust
Expand Down
4 changes: 2 additions & 2 deletions rig-core/src/pipeline/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
//! ## Parallel Operations
//! The pipeline API also provides a [parallel!](crate::parallel!) and macro for running operations in parallel.
//! The macro takes a list of ops and turns them into a single op that will duplicate the input
//! and run each op in concurently. The results of each op are then collected and returned as a tuple.
//! and run each op in concurrently. The results of each op are then collected and returned as a tuple.
//!
//! For example, the pipeline below runs two operations concurently:
//! For example, the pipeline below runs two operations concurrently:
//! ```rust
//! use rig::{pipeline::{self, Op, map}, parallel};
//!
Expand Down

0 comments on commit e6cff0f

Please sign in to comment.