diff --git a/impl/doc/from_str.md b/impl/doc/from_str.md index bf9d1e73..8ffd78d3 100644 --- a/impl/doc/from_str.md +++ b/impl/doc/from_str.md @@ -44,8 +44,8 @@ Code like this will be generated: ```rust # struct MyInt(i32); -impl derive_more::FromStr for MyInt { - type Err = ::Err; +impl derive_more::core::str::FromStr for MyInt { + type Err = ::Err; fn from_str(src: &str) -> Result { return Ok(MyInt(i32::from_str(src)?)); } @@ -74,8 +74,8 @@ Code like this will be generated: # struct Point1D { # x: i32, # } -impl derive_more::FromStr for Point1D { - type Err = ::Err; +impl derive_more::core::str::FromStr for Point1D { + type Err = ::Err; fn from_str(src: &str) -> Result { return Ok(Point1D { x: i32::from_str(src)?, @@ -121,8 +121,8 @@ Code like this will be generated: # Baz, # } # -impl derive_more::FromStr for EnumNoFields { - type Err = derive_more::FromStrError; +impl derive_more::core::str::FromStr for EnumNoFields { + type Err = derive_more::core::str::FromStrError; fn from_str(src: &str) -> Result { Ok(match src.to_lowercase().as_str() { "foo" => EnumNoFields::Foo,