Rename build_view to new_view and build_model to new_model
The word "new" is shorter and blends in with `new` constructors that are common in Rust. Been meaning to do this for a while.
This commit is contained in:
1 parent
5cf2ad3ac5
commit
5e93c10cf2
97 files changed
+470
-494
No files matched your search
@@ -198,7 +198,7 @@ mod tests {
|
||||
});
|
||||
});
|
||||
|
||||
cx.build_model(|cx| {
|
||||
cx.new_model(|cx| {
|
||||
let mut buffer =
|
||||
Buffer::new(0, cx.entity_id().as_u64(), "").with_language(language, cx);
|
||||
let append = |buffer: &mut Buffer, text: &str, cx: &mut ModelContext<Buffer>| {
|
||||
|
||||
Reference in new issue
Block a user