Skip to content

Commit

Permalink
Add cfg banner to documentation of Number::as_str
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 9, 2023
1 parent fc8dd13 commit f16cad6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/number.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ impl Number {
/// }
/// ```
#[cfg(feature = "arbitrary_precision")]
#[cfg_attr(docsrs, doc(cfg(feature = "arbitrary_precision")))]
pub fn as_str(&self) -> &str {
&self.n
}
Expand Down

0 comments on commit f16cad6

Please sign in to comment.