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-11-19 14:38:38 +01:00 committed by cloudhead
parent 8e2fe6449e
commit 61865b5b5a
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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"));
/// ``` /// ```