Add alignment parameter to set_text (#419)

* add alignment parameter to set_text

* Fix doc comment
This commit is contained in:
Erik McClure 2025-09-07 11:40:42 -07:00 committed by GitHub
parent 750e1a4dd1
commit 3c1f6c9e8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 30 additions and 11 deletions

View file

@ -36,7 +36,7 @@
//! let attrs = Attrs::new();
//!
//! // Add some text!
//! buffer.set_text("Hello, Rust! 🦀\n", &attrs, Shaping::Advanced);
//! buffer.set_text("Hello, Rust! 🦀\n", &attrs, Shaping::Advanced, None);
//!
//! // Perform shaping as desired
//! buffer.shape_until_scroll(true);