Skip to content

Commit

Permalink
Merge pull request #668 from JustusAdam/patch-1
Browse files Browse the repository at this point in the history
Correct Table documentation
  • Loading branch information
epage authored Jan 30, 2024
2 parents 106d51f + 5381d7b commit 9db97b3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/toml/src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ use crate::map::Map;
use crate::Value;

/// Type representing a TOML table, payload of the `Value::Table` variant.
/// By default it is backed by a BTreeMap, enable the `preserve_order` feature
/// to use a LinkedHashMap instead.
///
/// By default it entries are stored in
/// [lexicographic order](https://doc.rust-lang.org/std/primitive.str.html#impl-Ord-for-str)
/// of the keys. Enable the `preserve_order` feature to store entries in the order they appear in
/// the source file.
pub type Table = Map<String, Value>;

impl Table {
Expand Down

0 comments on commit 9db97b3

Please sign in to comment.