Skip to content

Commit

Permalink
Improve some documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
saulecabrera committed Aug 13, 2024
1 parent 3ebd039 commit 5775614
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/cli/src/codegen/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl WitOptions {
self.path.is_some() && self.world.is_some()
}

/// Unwraps a refernce to the .wit file.
/// Unwraps a refernce to the .wit file path.
pub fn unwrap_path(&self) -> &PathBuf {
self.path.as_ref().unwrap()
}
Expand Down Expand Up @@ -66,12 +66,13 @@ impl CodeGenBuilder {
self
}

/// Set the wit options
/// Set the wit options.
pub fn wit_opts(&mut self, opts: WitOptions) -> &mut Self {
self.wit_opts = opts;
self
}

/// Whether to compress the JS source.
pub fn source_compression(&mut self, compress: bool) -> &mut Self {
self.source_compression = compress;
self
Expand Down

0 comments on commit 5775614

Please sign in to comment.