cob: fix documentation
`no_run` will compile but not run the code. Use `ignore` instead, and also added `rust` for syntax highlighting.
This commit is contained in:
parent
8e2fe6449e
commit
61865b5b5a
|
|
@ -53,7 +53,7 @@ pub fn read_timestamp() -> i64 {
|
||||||
///
|
///
|
||||||
/// # Usage
|
/// # Usage
|
||||||
///
|
///
|
||||||
/// ```no_run
|
/// ```rust, ignore
|
||||||
/// let oid1 = with_advanced_timestamp(|| cob.update("New revision OID"));
|
/// let oid1 = with_advanced_timestamp(|| cob.update("New revision OID"));
|
||||||
/// let oid2 = with_advanced_timestamp(|| cob.update("Another revision OID"));
|
/// let oid2 = with_advanced_timestamp(|| cob.update("Another revision OID"));
|
||||||
/// ```
|
/// ```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue