From 3c41c83c12dd9e764d895fea17c8adf3b1ccbbc1 Mon Sep 17 00:00:00 2001 From: langurmonkey Date: Tue, 8 Oct 2024 15:20:47 +0200 Subject: [PATCH] Fix typo in buffer creation (#40) --- src/03-buffer-creation/01-buffer-creation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/03-buffer-creation/01-buffer-creation.md b/src/03-buffer-creation/01-buffer-creation.md index 4385615..5daad71 100644 --- a/src/03-buffer-creation/01-buffer-creation.md +++ b/src/03-buffer-creation/01-buffer-creation.md @@ -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