linebender / druid

A data-first Rust-native UI design toolkit.
https://linebender.org/druid/
Apache License 2.0
9.45k stars 569 forks source link

Fix book example in chapter 3 that didn't compile #2305

Closed nihonjinrxs closed 1 year ago

nihonjinrxs commented 1 year ago

Closes #2180.

This fixes the Chapter 3 code example in the book per the description on the issue.

Let me know if there's more I can do on this one. Thanks!

jneem commented 1 year ago

Thanks for the PR, but the book on git master has examples that compile with druid master, and so I believe that example was correct already.

nihonjinrxs commented 1 year ago

OK, feel free to close this PR if you don't want to merge.

Also, may be a good idea to respond to/close #2180 as well if it's really not an issue.

xStrom commented 1 year ago

Yeah sorry for the confusion, we should have closed that other issue earlier. We'll have a new release (0.8.0) later this month which should remove this confusion for everyone.

Also thanks for pointing out the typo, I'll make sure it gets fixed.