Skip to content

Commit 901ee64

Browse files
committed
veiw name to accessor
1 parent 2cdc079 commit 901ee64

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

crates/bindings/tests/ui/views-more.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ struct PlayerInfo {
99
age: u8,
1010
}
1111
/// Comparing incompatible types in `where` condition: u8 != u32 implicitly
12-
#[view(name = view_bad_where_int_types_implicit, public)]
12+
#view(accessor = view_bad_where_int_types_implicit, public)]
1313
fn view_bad_where_int_types_implicit(ctx: &ViewContext) -> impl Query<PlayerInfo> {
1414
ctx.from.player_info().r#where(|a| a.age.eq(4200)).build()
1515
}

docs/docs/00200-core-concepts/00100-databases/00500-cheat-sheet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ fn top_players(ctx: &ViewContext) -> Vec<Player> {
647647

648648
// Perform a generic filter using the query builder.
649649
// Equivalent to `SELECT * FROM player WHERE score < 1000`.
650-
#[view(name = bottom_players, public)]
650+
#view(accessor = bottom_players, public)]
651651
fn bottom_players(ctx: &ViewContext) -> impl Query<Player> {
652652
ctx.from.player().r#where(|p| p.score.lt(1000))
653653
}

0 commit comments

Comments
 (0)