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

发现一个 Rust 的一个小彩蛋

  •  
  •   VDimos · Mar 28, 2019 · 2629 views
    This topic created in 2708 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   ·   5886 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 02:43 · PVG 10:43 · LAX 19:43 · JFK 22:43
    ♥ Do have faith in what you're doing.