Skip to content

Commit c25a5a2

Browse files
committed
Correctly document cranelift_opt_level's default
The default has been "speed" for quite some time now, I'm not sure I remember a time when it was `None`...
1 parent 6ad0840 commit c25a5a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/wasmtime/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ impl Config {
11921192
/// optimization level used for generated code in a few various ways. For
11931193
/// more information see the documentation of [`OptLevel`].
11941194
///
1195-
/// The default value for this is `OptLevel::None`.
1195+
/// The default value for this is `OptLevel::Speed`.
11961196
#[cfg(any(feature = "cranelift", feature = "winch"))]
11971197
pub fn cranelift_opt_level(&mut self, level: OptLevel) -> &mut Self {
11981198
let val = match level {

0 commit comments

Comments
 (0)