From d6e0d88d745b86d0c8a5aa16304e8172c8ef2988 Mon Sep 17 00:00:00 2001 From: Anthony Brigante <39350438+abrigante1@users.noreply.github.com> Date: Fri, 13 Dec 2019 16:56:16 -0800 Subject: [PATCH] Update Graphemes Example Update the Graphemes example to use method syntax to be more coherent with the rest of the example. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 243fd4e..8c38a3c 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ 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); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy