Skip to content

Commit

Permalink
Fix some typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored and pvdrz committed Jul 2, 2024
1 parent b581fc2 commit 7740464
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ This version was skipped due to some problems on the release workflow.
* The `ParseCallbacks::generated_name_override` method now receives `ItemInfo<'_>` as
argument instead of a `&str`.
* Updated the `clang-sys` crate version to 1.4.0 to support clang 15.
* The return type is now ommited in signatures of functions returning `void`.
* The return type is now omitted in signatures of functions returning `void`.
* Updated the `clap` dependency for `bindgen-cli` to 4.
* Rewrote the `bindgen-cli` argument parser which could introduce unexpected
behavior changes.
Expand Down Expand Up @@ -1485,7 +1485,7 @@ Released 2017/10/27
We <3 folks who [help us find and fix issues via fuzzing][fuzzing]! *hint
hint*

* Added experimental support for the `thiscall` ABI when targetting Rust
* Added experimental support for the `thiscall` ABI when targeting Rust
nightly. [#1065][]

## Changed
Expand Down
2 changes: 1 addition & 1 deletion bindgen-cli/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ struct BindgenCommand {
/// Prefix the name of exported symbols.
#[arg(long)]
prefix_link_name: Option<String>,
/// Makes generated bindings `pub` only for items if the items are publically accessible in C++.
/// Makes generated bindings `pub` only for items if the items are publicly accessible in C++.
#[arg(long)]
respect_cxx_access_specs: bool,
/// Always translate enum integer types to native Rust integer types.
Expand Down
2 changes: 1 addition & 1 deletion bindgen/clang.rs
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ impl Cursor {
unsafe { clang_getCXXAccessSpecifier(self.x) }
}

/// Is the cursor's referent publically accessible in C++?
/// Is the cursor's referent publicly accessible in C++?
///
/// Returns true if self.access_specifier() is `CX_CXXPublic` or
/// `CX_CXXInvalidAccessSpecifier`.
Expand Down
4 changes: 2 additions & 2 deletions bindgen/ir/comp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ pub(crate) struct Base {
pub(crate) kind: BaseKind,
/// Name of the field in which this base should be stored.
pub(crate) field_name: String,
/// Whether this base is inherited from publically.
/// Whether this base is inherited from publicly.
pub(crate) is_pub: bool,
}

Expand Down Expand Up @@ -978,7 +978,7 @@ impl Base {
true
}

/// Whether this base is inherited from publically.
/// Whether this base is inherited from publicly.
pub(crate) fn is_public(&self) -> bool {
self.is_pub
}
Expand Down
2 changes: 1 addition & 1 deletion bindgen/ir/var.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ fn duplicated_macro_diagnostic(
#[cfg(feature = "experimental")]
// FIXME (pvdrz & amanjeev): This diagnostic message shows way too often to be actually
// useful. We have to change the logic where this function is called to be able to emit this
// message only when the duplication is an actuall issue.
// message only when the duplication is an actual issue.
//
// If I understood correctly, `bindgen` ignores all `#undef` directives. Meaning that this:
// ```c
Expand Down

0 comments on commit 7740464

Please sign in to comment.