Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Dec 18, 2023
1 parent 0af03e6 commit 040897e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions impl/doc/debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ and can be trivially substituted with a delegation call to the inner type, then
struct MyOctalInt(i32);

// so, additional formatting parameters do work transparently
assert_eq!(format!("{:03?}", MyInt(9)), "011");
assert_eq!(format!("{:03?}", MyOctalInt(9)), "011");

#[derive(Debug)]
#[debug("{_0:02b}")] // cannot be trivially substituted with `Binary::fmt()`
Expand All @@ -116,7 +116,7 @@ If, for some reason, delegation in trivial cases is not desired, it may be suppr
struct MyOctalInt(i32);

// so, additional formatting parameters have no effect
assert_eq!(format!("{:07}", MyInt(9)), "11");
assert_eq!(format!("{:07}", MyOctalInt(9)), "11");
```


Expand Down
4 changes: 2 additions & 2 deletions impl/doc/display.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ call to the inner type, then delegation will work too:
struct MyOctalInt(i32);

// so, additional formatting parameters do work transparently
assert_eq!(format!("{:03}", MyInt(9)), "011");
assert_eq!(format!("{:03}", MyOctalInt(9)), "011");

#[derive(Display)]
#[display("{_0:02b}")] // cannot be trivially substituted with `Binary::fmt()`
Expand All @@ -139,7 +139,7 @@ If, for some reason, delegation in trivial cases is not desired, it may be suppr
struct MyOctalInt(i32);

// so, additional formatting parameters have no effect
assert_eq!(format!("{:07}", MyInt(9)), "11");
assert_eq!(format!("{:07}", MyOctalInt(9)), "11");
```


Expand Down

0 comments on commit 040897e

Please sign in to comment.