Skip to content

Commit f8a7c14

Browse files
committed
[src/global.rs] Get doctests to pass
1 parent d56b152 commit f8a7c14

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/global.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -394,14 +394,16 @@ pub struct GenerationConfig<'a> {
394394
/// ```
395395
/// # use dsync::{GenerationConfig,GenerationConfigOpts};
396396
/// GenerationConfig {
397-
/// // ... all required options
398-
/// # connection_type: String::default(),
397+
/// // ... all required options, for example:
398+
/// connection_type: String::from("diesel::sqlite::SqliteConnection"),
399+
/// diesel_backend: String::from("diesel::sqlite::Sqlite"),
399400
/// options: Default::default(),
400401
/// };
401402
/// // or
402403
/// GenerationConfig {
403-
/// // ... all required options
404-
/// # connection_type: String::default(),
404+
/// // ... all required options, for example:
405+
/// connection_type: String::from("diesel::sqlite::SqliteConnection"),
406+
/// diesel_backend: String::from("diesel::sqlite::Sqlite"),
405407
/// options: GenerationConfigOpts {
406408
/// ..Default::default()
407409
/// },

0 commit comments

Comments
 (0)