Skip to content

Commit

Permalink
activate more rustdoc tests (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
ma2bd authored Dec 20, 2024
1 parent 6971cd5 commit 3aedb3b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/developers/core_concepts/applications.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ a response value back to the caller.
Taking the "fungible token" application as an example, an operation for a user
to transfer funds to another user would look like this:

```rust,ignore
```rust
# extern crate serde;
# extern crate linera_sdk;
# use serde::{Deserialize, Serialize};
# use linera_sdk::base::*;
#[derive(Debug, Deserialize, Serialize)]
pub enum Operation {
/// A transfer from a (locally owned) account to a (possibly remote) account.
Expand All @@ -100,9 +102,11 @@ block.
In our "fungible token" application, a message to credit an account would look
like this:

```rust,ignore
```rust
# extern crate serde;
# extern crate linera_sdk;
# use serde::{Deserialize, Serialize};
# use linera_sdk::base::*;
#[derive(Debug, Deserialize, Serialize)]
pub enum Message {
Credit { owner: AccountOwner, amount: Amount },
Expand Down

0 comments on commit 3aedb3b

Please sign in to comment.