Skip to content

Commit 4594a67

Browse files
committed
Minor doc fixups
1 parent 4738f11 commit 4594a67

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use nextver::prelude::*;
2424
let next = Sem::next_version_string(
2525
"<MAJOR>.<MINOR>.<PATCH>", // format string
2626
"1.2.3", // current version string
27-
SemLevel::Minor // the specifier to increment
27+
SemLevel::Minor // the specifier to increment
2828
)?;
2929
assert_eq!(next, "1.3.0");
3030
```

src/lib.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
//! let next = Sem::next_version_string(
2121
//! "<MAJOR>.<MINOR>.<PATCH>", // format string
2222
//! "1.2.3", // current version string
23-
//! SemLevel::Minor // the specifier to increment
23+
//! SemLevel::Minor // the specifier to increment
2424
//! )?;
2525
//! assert_eq!(next, "1.3.0");
2626
//! # Ok::<(), Box<dyn std::error::Error>>(())
@@ -29,14 +29,14 @@
2929
//! ```
3030
//! use nextver::prelude::*;
3131
//!
32-
//! let date = Date::utc_now(); // assume today is 2024-02-23
32+
//! let date = Date::utc_now(); // assume today is 2024-02-23
3333
//! # let date = Date::explicit(2024, 2, 23)?;
3434
//!
3535
//! let next = CalSem::next_version_string(
36-
//! "<YYYY>.<0M>-<PATCH>", // format string
37-
//! "2023.12-42", // current version string
38-
//! date, // the date to update to
39-
//! CalSemLevel::Patch // the specifier to increment if no calendar update
36+
//! "<YYYY>.<0M>-<PATCH>", // format string
37+
//! "2023.12-42", // current version string
38+
//! date, // the date to update to
39+
//! CalSemLevel::Patch // the specifier to increment if no calendar update
4040
//! )?;
4141
//! assert_eq!(next, "2024.02-0");
4242
//! # Ok::<(), Box<dyn std::error::Error>>(())
@@ -54,7 +54,7 @@
5454
//! let cur = format.new_version("2023.12.42")?;
5555
//! let next = cur.next(date, CalSemLevel::Patch)?;
5656
//! assert_eq!(next.to_string(), "2024.2.0");
57-
//! // comparisons are also possible with Version objects
57+
//! // the next version will be compare as greater than the current
5858
//! assert!(next > cur);
5959
//! # Ok::<(), Box<dyn std::error::Error>>(())
6060
//! ```

0 commit comments

Comments
 (0)