From 5ade845314467f4977888a54f9e7eee8c6079f80 Mon Sep 17 00:00:00 2001 From: Alex Touchet <26315797+atouchet@users.noreply.github.com> Date: Mon, 30 Mar 2026 14:14:48 -0700 Subject: [PATCH 1/2] Update lib.rs doc comments --- src/lib.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 299e289..759ac6d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,17 +8,15 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -//! Iterators which split strings on Grapheme Cluster, Word or Sentence boundaries, according -//! to the [Unicode Standard Annex #29](http://www.unicode.org/reports/tr29/) rules. +//! Iterators which split strings on Grapheme Cluster or Word boundaries, according +//! to the [Unicode Standard Annex #29](https://www.unicode.org/reports/tr29/) rules. //! //! ```rust -//! extern crate unicode_segmentation; -//! //! use unicode_segmentation::UnicodeSegmentation; //! //! fn main() { //! let s = "a̐éö̲\r\n"; -//! let g = UnicodeSegmentation::graphemes(s, true).collect::>(); +//! let g = s.graphemes(true).collect::>(); //! let b: &[_] = &["a̐", "é", "ö̲", "\r\n"]; //! assert_eq!(g, b); //! @@ -46,7 +44,7 @@ //! //! ```toml //! [dependencies] -//! unicode-segmentation = "1.9.0" +//! unicode-segmentation = "1" //! ``` #![deny(missing_docs, unsafe_code)] From d26de0a2ea0d5f723163ee6b63c0ce4a1a4aa142 Mon Sep 17 00:00:00 2001 From: Alex Touchet <26315797+atouchet@users.noreply.github.com> Date: Mon, 30 Mar 2026 14:33:02 -0700 Subject: [PATCH 2/2] Add Sentence wording --- README.md | 5 +++-- src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 710fe7e..8293723 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ -Iterators which split strings on Grapheme Cluster or Word boundaries, according -to the [Unicode Standard Annex #29](https://www.unicode.org/reports/tr29/) rules. +Iterators which split strings on Grapheme Cluster, Word, or Sentence boundaries, +according to the +[Unicode Standard Annex #29](https://www.unicode.org/reports/tr29/) rules. [![Build Status](https://github.com/unicode-rs/unicode-segmentation/actions/workflows/rust.yml/badge.svg)](https://github.com/unicode-rs/unicode-segmentation/actions/workflows/rust.yml) diff --git a/src/lib.rs b/src/lib.rs index 759ac6d..3c98542 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -//! Iterators which split strings on Grapheme Cluster or Word boundaries, according +//! Iterators which split strings on Grapheme Cluster, Word, or Sentence boundaries, according //! to the [Unicode Standard Annex #29](https://www.unicode.org/reports/tr29/) rules. //! //! ```rust