Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
apparebit committed Jul 12, 2024
1 parent f765327 commit eeac5fb
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@
//! and [API documentation](https://apparebit.github.io/prettypretty/python/)
//! for Python are separate as well.
//!
#![cfg_attr(not(feature = "pyffi"), doc = " **This version of prettypretty's API
documentation covers native Rust interfaces only, without Python integration,
i.e., the `pyffi` feature flag is disabled.**")]
#![cfg_attr(feature = "pyffi", doc = "**This version of prettypretty's API
documentation covers Rust interfaces as well as Python ingration, with the
`pyffi` feature flag enabled.**")]
#![cfg_attr(
not(feature = "pyffi"),
doc = " **This version of prettypretty's API documentation covers native Rust
interfaces only without Python integration, with the `pyffi` feature flag disabled**"
)]
#![cfg_attr(
feature = "pyffi",
doc = "**This version of prettypretty's API documentation covers Rust
interfaces as well as Python ingration, with the `pyffi` feature flag enabled.**"
)]
//!
//!
//! ## Overview
Expand Down Expand Up @@ -60,9 +64,12 @@ documentation covers Rust interfaces as well as Python ingration, with the
//! necessitating full separation into distinct blocks, one for
//! `feature="pyffi"`, one for `not(feature="pyffi")`, and sometimes a third one
//! for shared helper methods.
#![cfg_attr(feature = "pyffi", doc = "The documentation tags Python-only
methods as <span class=python-only></span> and Rust-only methods as
<span class=rust-only></span>.")]
#![cfg_attr(
feature = "pyffi",
doc = "The documentation tags Python-only methods as
<span class=python-only></span> and Rust-only methods as
<span class=rust-only></span>."
)]
//!
//! Despite these warts, the Python version offers the same functionality as the
//! Rust version. Since Python does not support traits such as `From` and
Expand Down

0 comments on commit eeac5fb

Please sign in to comment.