Skip to content

Commit

Permalink
Merge pull request #115 from jayvdb/typos
Browse files Browse the repository at this point in the history
chore: fix typos
  • Loading branch information
jeertmans authored Mar 14, 2024
2 parents 6eb365a + 0cc6bf8 commit eff21fc
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Chore

- Created founding link. [#19](https://github.com/jeertmans/languagetool-rust/pull/19)
- Added two related projets. [#21](https://github.com/jeertmans/languagetool-rust/pull/21)
- Added two related projects. [#21](https://github.com/jeertmans/languagetool-rust/pull/21)
- Added release dates. [#31](https://github.com/jeertmans/languagetool-rust/pull/31)
- Added `#[must_use]` flag to most structures, to please clippy pendantic. [#29](https://github.com/jeertmans/languagetool-rust/pull/29)
- Added `#[must_use]` flag to most structures, to please clippy pedantic. [#29](https://github.com/jeertmans/languagetool-rust/pull/29)
- Changed conditional compilation flags to directly point to dependency, e.g., `"clap"` instead of `"cli"`. [#28](https://github.com/jeertmans/languagetool-rust/pull/28)
- Use `cargo-nextest` instead of `cargo test` for faster CI testing. [#32](https://github.com/jeertmans/languagetool-rust/pull/32)
- Improve CI testing. [#41](https://github.com/jeertmans/languagetool-rust/pull/41)
Expand Down
2 changes: 1 addition & 1 deletion benches/benchmarks/check_texts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async fn request_until_success(req: &CheckRequest, client: &ServerClient) -> Che
{
continue;
},
Err(e) => panic!("Some unexpected error occured: {}", e),
Err(e) => panic!("Some unexpected error occurred: {}", e),
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/lib/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ mod request_tests {
}
}

/// Reponses
/// Responses
/// Detected language from check request.
#[allow(clippy::derive_partial_eq_without_eq)]
Expand Down Expand Up @@ -755,7 +755,7 @@ pub struct Context {
#[derive(Clone, Debug, Deserialize, PartialEq, Eq, Serialize)]
#[non_exhaustive]
pub struct MoreContext {
/// Line number where match occured.
/// Line number where match occurred.
pub line_number: usize,
/// Char index at which the match starts on the current line.
pub line_offset: usize,
Expand Down Expand Up @@ -1035,7 +1035,7 @@ impl CheckResponseWithContext {
self.response.iter_matches_mut()
}

/// Return an iterator over matches and correspondig line number and line
/// Return an iterator over matches and corresponding line number and line
/// offset.
#[must_use]
pub fn iter_match_positions(&self) -> MatchPositions<'_, std::slice::Iter<'_, Match>> {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ impl Cli {
StandardStream::stdout(choice)
}

/// Execute command, possibily returning an error.
/// Execute command, possibly returning an error.
pub async fn execute(self) -> Result<()> {
let mut stdout = self.stdout();

Expand Down
4 changes: 2 additions & 2 deletions src/lib/server.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Structure to communite with some `LanguageTool` server through the API.
//! Structure to communicate with some `LanguageTool` server through the API.
use crate::{
check::{CheckRequest, CheckResponse, CheckResponseWithContext},
Expand Down Expand Up @@ -335,7 +335,7 @@ impl From<ServerCli> for ServerClient {
impl ServerClient {
/// Construct a new server client using hostname and (optional) port
///
/// An empty string is accepeted as empty port.
/// An empty string is accepted as empty port.
/// For port validation, please use [`parse_port`] as this constructor does
/// not check anything.
#[must_use]
Expand Down

0 comments on commit eff21fc

Please sign in to comment.