Skip to content

Commit d8f4226

Browse files
authored
Merge pull request #268 from Hofer-Julian/patch-1
Reformulate sentence concerning stack allocated types
2 parents 9d3c3ec + 8d63473 commit d8f4226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_posts/2022-01-14-new-release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ By using the derive macro, structured data can be handled automatically instead
5656

5757
### Stack allocated types and reducing heap allocations
5858

59-
Various types that usually used stack-allocated from C were previously heap-allocated in the Rust bindings. With this release, these values are also stack-allocated when used from Rust unless explicitly heap-allocated, e.g. by explicitly placing them into a `Box`.
59+
Various types that are usually stack-allocated in C were previously heap-allocated in the Rust bindings. With this release, these values are also stack-allocated when used from Rust unless explicitly heap-allocated, e.g. by explicitly placing them into a `Box`.
6060

6161
Examples for this are all the [`graphene`](https://gtk-rs.org/gtk-rs-core/stable/0.15/docs/graphene/index.html) types (vectors, matrices, etc), which should make calculations considerably more efficient, types like [`gdk::Rectangle`](https://gtk-rs.org/gtk4-rs/stable/0.15/docs/gdk4/struct.Rectangle.html) and [`gdk::RGBA`](https://gtk-rs.org/gtk4-rs/stable/0.15/docs/gdk4/struct.RGBA.html), and [`gtk::TreeIter`](https://gtk-rs.org/gtk4-rs/stable/0.15/docs/gtk4/struct.TreeIter.html).
6262

0 commit comments

Comments
 (0)