Skip to content

Commit

Permalink
Fix formatting inconsistencies in documentation comments and README (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
SRv6d authored Dec 24, 2024
1 parent 87489ed commit abd2e54
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ Object(
instead of copying them.

```text
role: ACME Company ◀─────────────── &"role" ─── &"ACME Company"
address: Packet Street 6 ◀──────────── &"address" ─── &"Packet Street 6"
address: 128 Series of Tubes ◀──────── &"address" ─── &"128 Series of Tubes"
address: Internet ◀─────────────────── &"address" ─── &"Internet"
email: [email protected] ◀───────── &"email" ─── &"[email protected]"
nic-hdl: RPSL1-RIPE ◀───────────────── &"nic-hdl" ─── &"RPSL1-RIPE"
source: RIPE ◀─────────────────────── &"source" ─── &"RIPE"
role: ACME Company ◀─────────────── &"role": &"ACME Company"
address: Packet Street 6 ◀──────────── &"address": &"Packet Street 6"
address: 128 Series of Tubes ◀──────── &"address": &"128 Series of Tubes"
address: Internet ◀─────────────────── &"address": &"Internet"
email: [email protected] ◀───────── &"email": &"[email protected]"
nic-hdl: RPSL1-RIPE ◀───────────────── &"nic-hdl": &"RPSL1-RIPE"
source: RIPE ◀─────────────────────── &"source": &"RIPE"
```

This is what makes `rpsl-rs` performant and memory efficient, since no additional allocation is required during parsing.
Expand Down
8 changes: 4 additions & 4 deletions src/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ use super::Attribute;
/// ┌───────────────────────────────────────────────┐
/// │ Object │
/// ├───────────────────────────────────────────────┤
/// │ [role] ─── ACME Company │
/// │ [role] ─── ACME Company │
/// │ [address] ──┬─ Packet Street 6 │
/// │ ├─ 128 Series of Tubes │
/// │ └─ Internet │
/// │ [email] ─── [email protected]
/// │ [nic-hdl] ─── RPSL1-RIPE │
/// │ [source] ─── RIPE │
/// │ [email] ─── [email protected]
/// │ [nic-hdl] ─── RPSL1-RIPE │
/// │ [source] ─── RIPE │
/// └───────────────────────────────────────────────┘
/// ```
///
Expand Down
14 changes: 7 additions & 7 deletions src/parser/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ use crate::{Object, ParseError};
/// nic-hdl: RPSL1-RIPE
/// source: RIPE
/// ↓
/// role: ACME Company ◀─────────────── &"role" ─── &"ACME Company"
/// address: Packet Street 6 ◀──────────── &"address" ─── &"Packet Street 6"
/// address: 128 Series of Tubes ◀──────── &"address" ─── &"128 Series of Tubes"
/// address: Internet ◀─────────────────── &"address" ─── &"Internet"
/// email: [email protected] ◀───────── &"email" ─── &"[email protected]"
/// nic-hdl: RPSL1-RIPE ◀───────────────── &"nic-hdl" ─── &"RPSL1-RIPE"
/// source: RIPE ◀─────────────────────── &"source" ─── &"RIPE"
/// role: ACME Company ◀─────────────── &"role": &"ACME Company"
/// address: Packet Street 6 ◀──────────── &"address": &"Packet Street 6"
/// address: 128 Series of Tubes ◀──────── &"address": &"128 Series of Tubes"
/// address: Internet ◀─────────────────── &"address": &"Internet"
/// email: [email protected] ◀───────── &"email": &"[email protected]"
/// nic-hdl: RPSL1-RIPE ◀───────────────── &"nic-hdl": &"RPSL1-RIPE"
/// source: RIPE ◀─────────────────────── &"source": &"RIPE"
/// ```
///
/// # Errors
Expand Down

0 comments on commit abd2e54

Please sign in to comment.