Skip to content

Commit 4c7658b

Browse files
dfaure-kdabogoffart
authored andcommitted
Improve some comments, while reading/debugging the code
1 parent ea50a09 commit 4c7658b

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

internal/compiler/expression_tree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ pub enum MinMaxOp {
586586
Max,
587587
}
588588

589-
/// The Expression is hold by properties, so it should not hold any strong references to node from the object_tree
589+
/// The Expression is held by properties, so it should not hold any strong references to node from the object_tree
590590
#[derive(Debug, Clone, Default)]
591591
pub enum Expression {
592592
/// Something went wrong (and an error will be reported)

internal/compiler/passes/lower_layout.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ fn lower_element_layout(
131131
let prev_base = std::mem::replace(&mut elem.base_type, type_register.empty_type());
132132
elem.default_fill_parent = (true, true);
133133
// Create fake properties for the layout properties
134+
// like alignment, spacing, spacing-horizontal, spacing-vertical
134135
for (p, ty) in prev_base.property_list() {
135136
if !elem.base_type.lookup_property(&p).is_valid()
136137
&& !elem.property_declarations.contains_key(&p)

internal/core/layout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ pub fn reorder_dialog_button_layout(cells: &mut [GridLayoutCellData], roles: &[D
681681

682682
#[cfg(feature = "std")]
683683
fn is_kde() -> bool {
684-
// assume some unix check if XDG_CURRENT_DESKTOP stats with K
684+
// assume some Unix, check if XDG_CURRENT_DESKTOP starts with K
685685
std::env::var("XDG_CURRENT_DESKTOP")
686686
.ok()
687687
.and_then(|v| v.as_bytes().first().copied())

tools/lsp/preview/properties.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ pub struct QueryPropertyResponse {
9797
const HIGH_PRIORITY: u32 = 100;
9898
const DEFAULT_PRIORITY: u32 = 1000;
9999

100-
// This gets defined accessibility properties...
100+
// This returns defined reserved properties such as x, y, width, height,
101+
// accessiblity properties or layout properties
101102
fn get_reserved_properties<'a>(
102103
group: &'a str,
103104
group_priority: u32,

0 commit comments

Comments
 (0)