Unverified Commit d89ad6c7 authored by Johannes Kirschbauer's avatar Johannes Kirschbauer
Browse files

Format: lib/versions.nix

parent e0fe216f
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@ rec {
  /**
    Break a version string into its component parts.


    # Examples
    :::{.example}
    ## `splitVersion` usage example
@@ -23,14 +22,12 @@ rec {
  /**
    Get the major version string from a string.


    # Inputs

    `v`

    : 1\. Function argument


    # Examples
    :::{.example}
    ## `major` usage example
@@ -47,14 +44,12 @@ rec {
  /**
    Get the minor version string from a string.


    # Inputs

    `v`

    : 1\. Function argument


    # Examples
    :::{.example}
    ## `minor` usage example
@@ -71,14 +66,12 @@ rec {
  /**
    Get the patch version string from a string.


    # Inputs

    `v`

    : 1\. Function argument


    # Examples
    :::{.example}
    ## `patch` usage example
@@ -96,14 +89,12 @@ rec {
    Get string of the first two parts (major and minor)
    of a version string.


    # Inputs

    `v`

    : 1\. Function argument


    # Examples
    :::{.example}
    ## `majorMinor` usage example
@@ -120,7 +111,6 @@ rec {
  /**
    Pad a version string with zeros to match the given number of components.


    # Inputs

    `n`
@@ -131,7 +121,6 @@ rec {

    : 2\. Function argument


    # Examples
    :::{.example}
    ## `pad` usage example