-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix formatting inconsistencies in documentation comments and README (#…
…163)
- Loading branch information
Showing
3 changed files
with
18 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 │ | ||
/// └───────────────────────────────────────────────┘ | ||
/// ``` | ||
/// | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|