Skip to content

Commit

Permalink
Fixed bug in wasm build?
Browse files Browse the repository at this point in the history
  • Loading branch information
rben01 committed Sep 28, 2024
1 parent f0e965e commit 2a9baba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion numbat-wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use std::sync::{Arc, Mutex};
use wasm_bindgen::prelude::*;

use numbat::buffered_writer::BufferedWriter;
use numbat::commands::HelpKind;
use numbat::diagnostic::ErrorDiagnostic;
use numbat::help::help_markup;
use numbat::html_formatter::{HtmlFormatter, HtmlWriter};
Expand Down Expand Up @@ -168,7 +169,7 @@ impl Numbat {
}

pub fn help(&self) -> JsValue {
self.format(&help_markup(), true).into()
self.format(&help_markup(HelpKind::BasicHelp), true).into()
}

pub fn print_info(&mut self, keyword: &str) -> JsValue {
Expand Down

0 comments on commit 2a9baba

Please sign in to comment.