Skip to content

Commit

Permalink
make code snippets consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcook1186 authored and cburgdorf committed Oct 19, 2023
1 parent 8fe405e commit 00b8328
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/src/spec/items/functions/context.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ To make Fe maximally explicit and as easy as possible to audit, these functions

For example, the following function looks pure from its signature (i.e. it is not expected to alter any blockchain data) but in reality it does modify the blockchain (by emitting a log).

```rust
struct SomeEvent{
}

```fe,ignore
pub fn looks_pure_but_isnt() {
// COMPILE ERROR
emit(SomeEvent())
block_number()
}
```

Expand Down

0 comments on commit 00b8328

Please sign in to comment.