Skip to content

Commit 92d0b57

Browse files
committed
Fix up the example for expand
1 parent e872a0b commit 92d0b57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,9 +616,9 @@ impl Config {
616616
///
617617
/// # Example
618618
/// ```no_run
619-
/// gcc::Config::new()
620-
/// .file("src/foo.c")
621-
/// .expand()
619+
/// let out = gcc::Config::new()
620+
/// .file("src/foo.c")
621+
/// .expand();
622622
/// ```
623623
pub fn expand(&self) -> Vec<u8> {
624624
let compiler = self.get_compiler();

0 commit comments

Comments
 (0)