From a29b50303325cab60a6e4db0cbba434b2fe243a2 Mon Sep 17 00:00:00 2001 From: Jethro Beekman Date: Mon, 17 Oct 2016 17:49:07 -0700 Subject: [PATCH] Add stable example to TypeId --- src/libcore/any.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/libcore/any.rs b/src/libcore/any.rs index f7edcb998a9..eb0636e8576 100644 --- a/src/libcore/any.rs +++ b/src/libcore/any.rs @@ -351,12 +351,10 @@ impl TypeId { /// # Examples /// /// ``` - /// #![feature(get_type_id)] - /// /// use std::any::{Any, TypeId}; /// - /// fn is_string(s: &Any) -> bool { - /// TypeId::of::() == s.get_type_id() + /// fn is_string(_s: &T) -> bool { + /// TypeId::of::() == TypeId::of::() /// } /// /// fn main() { -- 2.44.0