Skip to content

Commit

Permalink
Documentation tweak [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
yutannihilation committed Apr 29, 2024
1 parent c76b919 commit 8ba2643
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion book/src/initialization_routine.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ the package is loaded, which is what [Writing R Extension][wre] calls
For example, if you write such a Rust function like this,

``` rust
use savvy::ffi::DllInfo;

#[savvy]
fn init_foo(_dll_info: *mut savvy::ffi::DllInfo) -> savvy::Result<()> {
fn init_foo(_dll_info: *mut DllInfo) -> savvy::Result<()> {
r_eprintln!("Initialized!");
Ok(())
}
Expand Down

0 comments on commit 8ba2643

Please sign in to comment.