Skip to content

Commit

Permalink
Fix doc test
Browse files Browse the repository at this point in the history
Signed-off-by: yihuaf <[email protected]>
  • Loading branch information
yihuaf committed Aug 3, 2023
1 parent 531b367 commit 009eae7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/libcontainer/src/container/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,13 @@ impl ContainerBuilder {
/// ```no_run
/// # use libcontainer::container::builder::ContainerBuilder;
/// # use libcontainer::syscall::syscall::SyscallType;
/// # use libcontainer::workload::default::get_executor;
/// # use libcontainer::workload::default::DefaultExecutor;
///
/// ContainerBuilder::new(
/// "74f1a4cb3801".to_owned(),
/// SyscallType::default(),
/// )
/// .with_executor(get_executor());
/// .with_executor(DefaultExecutor{});
/// ```
pub fn with_executor(mut self, executor: impl Executor + 'static) -> Self {
self.executor = Box::new(executor);
Expand Down

0 comments on commit 009eae7

Please sign in to comment.