Skip to content

Commit 07740f8

Browse files
committed
Fix markdown for code sample
1 parent 573ffc8 commit 07740f8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.rst

+5-4
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,12 @@ The following actions are available out of the box. They may be used in either
258258
may be used.
259259

260260
``StoreOption``
261-
As ``Store``, but wrap value with ``Some`` for use with ``Option``. For
262-
example:
261+
As ``Store``, but wrap value with ``Some`` for use with ``Option``. For example:
263262

264-
let mut x: Option<i32> = None;
265-
ap.refer(&mut x).add_option(&["-x"], StoreOption, "Set var x");
263+
```Rust
264+
let mut x: Option<i32> = None;
265+
ap.refer(&mut x).add_option(&["-x"], StoreOption, "Set var x");
266+
```
266267

267268
``StoreConst(value)``
268269
An option has no arguments. Store a hard-coded ``value`` into variable,

0 commit comments

Comments
 (0)