mirror of
https://github.com/fluencelabs/marine-rs-sdk-test
synced 2025-03-15 12:40:50 +00:00
fix doc
This commit is contained in:
parent
678cbc14d5
commit
f800a0430b
@ -17,8 +17,8 @@
|
|||||||
//! Rust backend SDK for applications on the Fluence network. This crate defines the procedure macro
|
//! Rust backend SDK for applications on the Fluence network. This crate defines the procedure macro
|
||||||
//! `#[fce]` that could be applied to a function, structure or extern block.
|
//! `#[fce]` that could be applied to a function, structure or extern block.
|
||||||
//!
|
//!
|
||||||
//! Structures with `#[fce]` could be used then in function arguments and values
|
//! Structures with `#[fce]` (hereinafter they'll be called records) could be used then in function
|
||||||
//! (hereinafter they'll be called records). All fields of a record should be public and have one of the
|
//! arguments and values. All fields of a record should be public and have one of the
|
||||||
//! following primitive Rust types
|
//! following primitive Rust types
|
||||||
//! (`bool, u8, u16, u32, u64, i8, i16, i32, i64, f32, f64, String, Vec<u8>`).
|
//! (`bool, u8, u16, u32, u64, i8, i16, i32, i64, f32, f64, String, Vec<u8>`).
|
||||||
//! ```rust
|
//! ```rust
|
||||||
@ -26,8 +26,8 @@
|
|||||||
//!
|
//!
|
||||||
//! #[fce]
|
//! #[fce]
|
||||||
//! struct T {
|
//! struct T {
|
||||||
//! field_1: i32,
|
//! pub field_1: i32,
|
||||||
//! field_2: Vec<u8>,
|
//! pub field_2: Vec<u8>,
|
||||||
//! }
|
//! }
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user