mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-10-18 19:10:30 +08:00
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:
@@ -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"));
|
||||
/// ```
|
||||
|
||||
Reference in New Issue
Block a user