From b709e0dee20380998145fe17f1daf95ec31dfea3 Mon Sep 17 00:00:00 2001 From: mattwparas Date: Sun, 24 Dec 2023 09:27:05 -0800 Subject: [PATCH] exclude the rust blocks from the play pen --- docs/src/dylibs/example.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/dylibs/example.md b/docs/src/dylibs/example.md index e7fc87286..356c7f71b 100644 --- a/docs/src/dylibs/example.md +++ b/docs/src/dylibs/example.md @@ -48,7 +48,7 @@ For the purposes of this example, we'll create a module that wraps the `MemInfo` the information there. Since we'll be implementing traits that are defined inside the `steel` crate, we'll need to create a struct to wrap the `sys_info::MemInfo` struct: -```rust +```rust,noplaypen struct MemoryInfo { info: sys_info::MemInfo, } @@ -86,7 +86,7 @@ impl MemoryInfo { Now that we've done that, we can expose this to steel by implementing the `Custom` type for the struct, and declaring an `FFIModule`: -```rust +```rust,noplaypen // Using ABI Stable types is very important use steel::{ declare_module,