Skip to content

Commit

Permalink
Fix typos (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
kianmeng committed Jul 21, 2022
1 parent 2878012 commit 1fff8b0
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ All notable changes to insta and cargo-insta are documented here.
**Upgrade Notes:**

Insta used to detect the current test name by using the current thread name. This
appeared to work well but unfortunatley ran into various limitations. In particular
appeared to work well but unfortunately ran into various limitations. In particular
in some cases the thread name was truncated, missing or did not point to the current
test name. To better support different platforms and situations insta now uses the
function name instead.
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
//!
//! The recommended flow is to run the tests once, have them fail and check
//! if the result is okay. By default the new snapshots are stored next
//! to the old ones with the extra `.new` extension. Once you are satisifed
//! to the old ones with the extra `.new` extension. Once you are satisfied
//! move the new files over. To simplify this workflow you can use
//! `cargo insta review` which will let you interactively review them:
//!
Expand Down
4 changes: 2 additions & 2 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ macro_rules! assert_toml_snapshot {
/// snapshot variant the type of the value does not appear in the output.
/// You can however use the `assert_ron_snapshot!` macro to dump out
/// the value in [RON](https://github.com/ron-rs/ron/) format which retains some
/// type information for more accurate comparisions.
/// type information for more accurate comparisons.
///
/// Example:
///
Expand Down Expand Up @@ -170,7 +170,7 @@ macro_rules! assert_yaml_snapshot {
///
/// This works exactly like [`assert_yaml_snapshot!`]
/// but serializes in [RON](https://github.com/ron-rs/ron/) format instead of
/// YAML which retains some type information for more accurate comparisions.
/// YAML which retains some type information for more accurate comparisons.
///
/// Example:
///
Expand Down
2 changes: 1 addition & 1 deletion src/redaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::content::Content;
pub struct SelectorParseError(pest::error::Error<Rule>);

impl SelectorParseError {
/// Return the column of where the error ocurred.
/// Return the column of where the error occurred.
pub fn column(&self) -> usize {
match self.0.line_col {
pest::error::LineColLocation::Pos((_, col)) => col,
Expand Down
2 changes: 1 addition & 1 deletion vscode-insta/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Contains all notable changes to the vscode plugin for insta.

## 1.0.1

* Improvements to the syntax grammer
* Improvements to the syntax grammar

## 1.0.0

Expand Down
2 changes: 1 addition & 1 deletion vscode-insta/src/SnapshotPathProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export class SnapshotPathProvider implements DefinitionProvider {
}

// we try to find the file in three passes:
// - exact matchin the snapshot folder.
// - exact matching the snapshot folder.
// - with a wildcard module prefix (crate__foo__NAME__SNAP)
// - with a wildcard module prefix and suffix (crate__foo__NAME__tests__SNAP)
// This is needed since snapshots can be contained in submodules. Since
Expand Down

0 comments on commit 1fff8b0

Please sign in to comment.