Skip to content

Commit

Permalink
Fix typo in buffer creation (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
langurmonkey authored Oct 8, 2024
1 parent f86213a commit 3c41c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/03-buffer-creation/01-buffer-creation.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ a single integer with the value `12`.
## From_data and from_iter

In the example above we create a buffer that contains the value `12`, which is of type `i32`.
In the example above we create a buffer that contains the value `12`, which is of type `i32`,
but you can put any type you want in a buffer, there is no restriction. In order to give our
arbitrary types a representation that can be used in a generic way, we use the crate `bytemuck`
and its "plain old data" trait, `AnyBitPattern`. Thus, any crate which exposes types with
Expand Down

0 comments on commit 3c41c83

Please sign in to comment.