Skip to content

Commit

Permalink
doc: Fix some doc code
Browse files Browse the repository at this point in the history
  • Loading branch information
GrayJack committed Jan 18, 2025
1 parent 63967da commit 8652930
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ impl JanetClient {
/// let mut client = JanetClient::init()?;
/// assert!(client.env().is_none());
///
/// client.add_c_fn(CFunOptions::new(c"test", test));
/// client.add_c_fn(CFunOptions::new(c"test", test_c));
/// assert!(client.env().is_some());
///
/// let c = client.run("test")?;
Expand Down
4 changes: 2 additions & 2 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ macro_rules! table {
/// }
///
/// janet_mod!("rust";
/// {"hello", rust_hello, "(rust/hello)\n\nRust say hello"},
/// {"hi", hi, "(rust/hi)\n\nHi! My name is..."}
/// {"hello", rust_hello_c, "(rust/hello)\n\nRust say hello"},
/// {"hi", hi_c, "(rust/hi)\n\nHi! My name is..."}
/// );
/// ```
#[deprecated(since = "0.4.0", note = "use `declare_janet_mod` instead")]
Expand Down

0 comments on commit 8652930

Please sign in to comment.