Skip to content

Commit

Permalink
Minor docstring fixes.
Browse files Browse the repository at this point in the history
Signed-off-by: Nashwan Azhari <[email protected]>
  • Loading branch information
aznashwan committed Jul 8, 2024
1 parent 4c30e1f commit cac1de8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gleam.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "gleamsver"
version = "1.0.0"
version = "1.0.1"

description = "Comprehensive set of native Gleam utilities for handling SemVer 2.0.0 version strings."
licences = ["MIT"]
Expand Down
6 changes: 3 additions & 3 deletions src/gleamsver.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub const empty_semver = SemVer(0, 0, 0, "", "")
/// // -> Ok(SemVer(major: 1, minor; 2, patch: 3, pre: "rc0", build: "20240505"))
/// ```
///
/// Both the Pre-release ("-rc0") and Build ("+20240505") parts are optional:
/// Both the Pre-release (`-rc0`) and Build (`+20240505`) parts are optional:
///
/// ```gleam
/// parse("4.5.6-rc0")
Expand Down Expand Up @@ -117,7 +117,7 @@ pub const empty_semver = SemVer(0, 0, 0, "", "")
///
/// ```gleam
/// parse("abc")
/// -> MissingMajor("Leading Major SemVer Integer part is missing.")
/// // -> MissingMajor("Leading Major SemVer Integer part is missing.")
/// // To get the error String directly, simply:
/// parse("abc") |> result.map_error(string_from_parsing_error)
/// // -> Error("Leading Major SemVer Integer part is missing.")
Expand Down Expand Up @@ -390,7 +390,7 @@ pub fn are_compatible(v1: SemVer, with v2: SemVer) -> Bool {
///
/// ## Examples
///
/// ```gleams
/// ```gleam
/// are_equal_core(SemVer(1, 2, 3, "", ""), with: SemVer(1, 2, 3, "", ""))
/// // -> True
///
Expand Down

0 comments on commit cac1de8

Please sign in to comment.