diff --git a/src/ipinfo.rs b/src/ipinfo.rs index 7fed77b..0a3efab 100644 --- a/src/ipinfo.rs +++ b/src/ipinfo.rs @@ -123,7 +123,7 @@ impl IpInfo { /// ``` /// use ipinfo::IpInfo; /// - /// let ipinfo = IpInfo::new(Default::default()).expect("should construct"); + /// let ipinfo = IpInfo::new_v6(Default::default()).expect("should construct"); /// ``` pub fn new_v6(config: IpInfoConfig) -> Result { Self::base_request(config, "https://v6.ipinfo.io/")