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:
Fintan Halpenny
2024-12-04 12:40:40 +01:00
committed by cloudhead
parent 8e2fe6449e
commit 61865b5b5a
+1 -1
View File
@@ -53,7 +53,7 @@ pub fn read_timestamp() -> i64 {
///
/// # Usage
///
/// ```no_run
/// ```rust, ignore
/// let oid1 = with_advanced_timestamp(|| cob.update("New revision OID"));
/// let oid2 = with_advanced_timestamp(|| cob.update("Another revision OID"));
/// ```