Skip to content

Commit

Permalink
Minor format fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
weiznich committed Mar 4, 2021
1 parent 2f046d0 commit 9e0e925
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions diesel/src/query_dsl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ pub trait QueryDsl: Sized {
/// let join = users::table.left_join(posts::table);
///
/// // By default, all columns from both tables are selected.
/// // If no explicit select clause is used this means that the result type of this query must contain all fields from the original schema in order.
/// // If no explicit select clause is used this means that the result
/// // type of this query must contain all fields from the original schema in order.
/// let all_data = join.load::<(User, Option<Post>)>(&connection)?;
/// let expected_data = vec![
/// (User::new(1, "Sean"), Some(Post::new(post_id, 1, "Sean's Post"))),
Expand Down Expand Up @@ -461,7 +462,9 @@ pub trait QueryDsl: Sized {
/// .unwrap();
///
/// // By default, all columns from both tables are selected.
/// // If no explicit select clause is used this means that the result type of this query must contain all fields from the original schema in order.
/// // If no explicit select clause is used this means that the
/// // result type of this query must contain all fields from the
/// // original schema in order.
/// let data = users
/// .inner_join(posts.on(title.like(name.concat("%"))))
/// .load::<(User, Post)>(&connection); // type could be elided
Expand Down

0 comments on commit 9e0e925

Please sign in to comment.