Skip to content

Commit 9db97b3

Browse files
authored
Merge pull request #668 from JustusAdam/patch-1
Correct Table documentation
2 parents 106d51f + 5381d7b commit 9db97b3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

crates/toml/src/table.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ use crate::map::Map;
77
use crate::Value;
88

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

1417
impl Table {

0 commit comments

Comments
 (0)