Fix example
This commit is contained in:
parent
9dfef65a48
commit
94650bf5c6
@ -53,7 +53,7 @@ pub trait LoaderTrait {
|
||||
///
|
||||
/// let fruits = cakes.load_many(fruit::Entity::find(), &db);
|
||||
///
|
||||
/// assert_eq!(fruits, vec![fruit::Model { id: 1, name: "Apple".to_owned(), cake_id: Some(1), }]);
|
||||
/// assert_eq!(fruits, vec![[fruit::Model { id: 1, name: "Apple".to_owned(), cake_id: Some(1), }]]);
|
||||
/// ```
|
||||
async fn load_many<R, C>(&self, stmt: Select<R>, db: &C) -> Result<Vec<Vec<R::Model>>, DbErr>
|
||||
where
|
||||
|
Loading…
x
Reference in New Issue
Block a user