Fix example

This commit is contained in:
Panagiotis Karatakis 2022-11-21 14:23:36 +02:00
parent 9dfef65a48
commit 94650bf5c6

View File

@ -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