Skip to content

Commit fb39a30

Browse files
Sun Binshandongbinzhou
andauthored
chore: fix some comments (#2798)
Signed-off-by: shandongbinzhou <shandongbinzhou@outlook.com> Co-authored-by: shandongbinzhou <shandongbinzhou@outlook.com>
1 parent 0c32f2e commit fb39a30

File tree

14 files changed

+27
-27
lines changed

14 files changed

+27
-27
lines changed

bindgen-tests/tests/expectations/tests/enum-doc-bitfield.rs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindgen-tests/tests/expectations/tests/enum-doc-mod.rs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindgen-tests/tests/expectations/tests/enum-doc-rusty.rs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindgen-tests/tests/expectations/tests/enum-doc.rs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindgen-tests/tests/expectations/tests/issue-537-repr-packed-n.rs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindgen-tests/tests/headers/enum-doc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
enum B {
33
/// Document field with three slashes
44
VAR_A = 0,
5-
/** Document field with preceeding star */
5+
/** Document field with preceding star */
66
VAR_B = 1,
7-
/*! Document field with preceeding exclamation */
7+
/*! Document field with preceding exclamation */
88
VAR_C = 2,
99
VAR_D = 3, /**< Document field with following star */
1010
VAR_E = 4, /*!< Document field with following exclamation */
1111
/**
12-
* Document field with preceeding star, with a loong long multiline
12+
* Document field with preceding star, with a loong long multiline
1313
* comment.
1414
*
1515
* Very interesting documentation, definitely.

bindgen-tests/tests/headers/issue-537-repr-packed-n.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ struct AlignedToOne {
66
int i;
77
} __attribute__ ((packed,aligned(1)));
88

9-
/// This should be be packed because Rust 1.33 has `#[repr(packed(N))]`.
9+
/// This should be packed because Rust 1.33 has `#[repr(packed(N))]`.
1010
struct AlignedToTwo {
1111
int i;
1212
} __attribute__ ((packed,aligned(2)));
@@ -25,7 +25,7 @@ struct PackedToOne {
2525

2626
#pragma pack(2)
2727

28-
/// This should be be packed because Rust 1.33 has `#[repr(packed(N))]`.
28+
/// This should be packed because Rust 1.33 has `#[repr(packed(N))]`.
2929
struct PackedToTwo {
3030
int x;
3131
int y;

bindgen-tests/tests/headers/template-param-usage-7.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ class DoesNotUseU {
66
V v;
77
};
88

9-
// The bool should go away becuase U is not used.
9+
// The bool should go away because U is not used.
1010
using Alias = DoesNotUseU<int, bool, char>;

bindgen-tests/tests/headers/wrap-static-fns.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// bindgen-flags: --experimental --wrap-static-fns
22
// bindgen-parse-callbacks: wrap-as-variadic-fn
33

4-
// to avoid poluting theexpectation tests we put the stdarg.h behind a conditional
4+
// to avoid polluting the expectation tests we put the stdarg.h behind a conditional
55
// variable only used in bindgen-integration
66
#ifdef USE_VA_HEADER
77
#include <stdarg.h>

bindgen/codegen/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2557,7 +2557,7 @@ impl CodeGenerator for CompInfo {
25572557
};
25582558
// Note we use `ptr::write_bytes()` instead of `mem::zeroed()` because the latter does
25592559
// not necessarily ensure padding bytes are zeroed. Some C libraries are sensitive to
2560-
// non-zero padding bytes, especially when forwards/backwards compatability is
2560+
// non-zero padding bytes, especially when forwards/backwards compatibility is
25612561
// involved.
25622562
result.push(quote! {
25632563
impl #generics Default for #ty_for_impl {

0 commit comments

Comments
 (0)