• 请不要在回答技术问题时复制粘贴 AI 生成的内容
VDimos
V2EX  ›  程序员

发现一个 Rust 的一个小彩蛋

  •  
  •   VDimos · Mar 28, 2019 · 2442 views
    This topic created in 2628 days ago, the information mentioned may be changed or developed.

    Rust 里面的 char 类型,有个函数叫 is_alphabetic 的方法,这里的文档有个小彩蛋:

        /// let c = '💝';
        /// // love is many things, but it is not alphabetic
        /// assert!(!c.is_alphabetic());
    

    写这个的程序员有点儿暖

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3816 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 04:23 · PVG 12:23 · LAX 21:23 · JFK 00:23
    ♥ Do have faith in what you're doing.