style: align layout and ownership documentation
This commit is contained in:
+2
-2
@@ -426,7 +426,7 @@ set_source proc(
|
||||
try arraylist.append(&builder.storage.sources,
|
||||
diagnostics.Source{
|
||||
path = path,
|
||||
text = text
|
||||
text = text,
|
||||
})
|
||||
builder.source = text
|
||||
builder.source_id = id
|
||||
@@ -446,7 +446,7 @@ remove_source proc(builder @mut Builder) void {
|
||||
builder.source = builder.storage.sources.items[usize(builder.source_id)].text
|
||||
}
|
||||
|
||||
#! borrows builder storage; refresh after builder mutation and never pass this view to deinit.
|
||||
#! borrows `builder` storage; refresh after builder mutation and never pass this view to deinit.
|
||||
view proc(builder @Builder, root NodeId) Tree {
|
||||
return Tree{ storage = builder.storage, root = root }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user