Skip to content

Commit c714c1e

Browse files
ccoVeillefioncat
authored andcommitted
chore: make sure "donot" is reported as a typo
1 parent 08785a3 commit c714c1e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/tree/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl<'a> Tree<'a> {
4848
pub fn from_value(cfg: &'a Config, value: Value, content_type: ContentType) -> Result<Self> {
4949
let mut details: HashMap<String, Detail> = HashMap::new();
5050

51-
// The root value needs to be expanded directly, since we donot want to see a
51+
// The root value needs to be expanded directly, since we don't want to see a
5252
// `root` item in the tree.
5353
let items: Vec<TreeItem<String>> = if let Value::Array(arr) = value {
5454
let mut items = Vec::with_capacity(arr.len());

src/ui/tree_overview.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl<'a> TreeOverview<'a> {
6868
let value = match self.tree().details.get(id.as_str()) {
6969
Some(detail) => {
7070
if !matches!(detail.raw_value, Value::Array(_) | Value::Object(_)) {
71-
// We donot allow to change root to non-expandable value
71+
// We don't allow to change root to non-expandable value
7272
return false;
7373
}
7474
detail.raw_value.clone()

typos.toml

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[default.extend-words]
22
ratatui = "ratatui"
3+
donot = "don't"

0 commit comments

Comments
 (0)