Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
scovich committed Aug 13, 2024
1 parent 1659532 commit bb92f00
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/bindgen/ir/structure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,8 @@ impl Struct {
) -> Self {
// WARNING: Zero-sized transparent structs are legal rust [1], but zero-sized types of any
// repr are "best avoided entirely" [2] because they "will be nonsensical or problematic if
// passed through the FFI boundary" [3]. Further, because there no well-defined underlying
// native type exists for a ZST, we cannot emit a typedef for it and must treat it as an
// empty repr(C) struct instead.
// passed through the FFI boundary" [3]. Further, because no well-defined underlying native
// type exists for a ZST, we cannot emit a typedef and must define an empty struct instead.
//
// [1] https://github.com/rust-lang/rust/issues/77841#issuecomment-716575747
// [2] https://github.com/rust-lang/rust/issues/77841#issuecomment-716796313
Expand Down

0 comments on commit bb92f00

Please sign in to comment.