Skip to content

Commit 1ad4572

Browse files
Update documentation
1 parent 33ea487 commit 1ad4572

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/lib.rs

+9-1
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,15 @@ impl Build {
562562
}
563563

564564
/// Add multiple flags to the invocation of the compiler.
565-
/// This is equivalent to calling `.flag()` for each item in the iterator.
565+
/// This is equivalent to calling [`flag`](Self::flag) for each item in the iterator.
566+
///
567+
/// # Example
568+
/// ```
569+
/// cc::Build::new()
570+
/// .file("src/foo.c")
571+
/// .flag("-Wall -Wextra")
572+
/// .compile("foo");
573+
/// ```
566574
pub fn flags<Iter>(&mut self, flags: Iter) -> &mut Build
567575
where
568576
Iter: IntoIterator,

0 commit comments

Comments
 (0)