Skip to content

Commit

Permalink
Change format for how macros are documented.
Browse files Browse the repository at this point in the history
Fixes #365
  • Loading branch information
frewsxcv committed Mar 23, 2020
1 parent f27d9f7 commit 84fcacf
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions geo-types/src/macros.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// Creates a [`Point`] from the given coordinates.
///
/// ```txt
/// point!(«(x,y)»)
/// point!(x: <number>, y: <number>)
/// ```
///
/// # Examples
Expand Down Expand Up @@ -30,7 +30,7 @@ macro_rules! point {
/// Creates a [`LineString`] containing the given coordinates.
///
/// ```txt
/// line_string![«Coordinate|(x,y)», …]
/// line_string![Coordinate OR (x: <number>, y: <number>), …]
/// ```
///
/// # Examples
Expand Down Expand Up @@ -118,12 +118,14 @@ macro_rules! line_string {
/// Creates a [`Polygon`] containing the given coordinates.
///
/// ```txt
/// polygon![«Coordinate|(x,y)», …]
/// polygon![Coordinate OR (x: <number>, y: <number>), …]
///
/// // or
///
/// polygon!(
/// exterior: [«Coordinate|(x,y)», …],
/// exterior: [Coordinate OR (x: <number>, y: <number>), …],
/// interiors: [
/// [«Coordinate|(x,y)», …],
/// [Coordinate OR (x: <number>, y: <number>), …],
/// …
/// ],
/// )
Expand Down

0 comments on commit 84fcacf

Please sign in to comment.