From 3b6b82e4cbfbf7e5a74e76e0f6de271473b08615 Mon Sep 17 00:00:00 2001 From: Thyrst Date: Wed, 25 Mar 2020 12:16:31 +0100 Subject: [PATCH] Fix syntax Links don't work now because of incorrect syntax: https://python-semanticversion.readthedocs.io/en/latest/reference.html#semantic_version.Version.truncate --- docs/reference.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference.rst b/docs/reference.rst index da08a22..a98ba7c 100644 --- a/docs/reference.rst +++ b/docs/reference.rst @@ -173,7 +173,7 @@ Representing a version (the Version class) >>> Version('1.1.0-alpha').next_minor() Version('1.1.0') - .. method:: next_patch(self): + .. method:: next_patch(self) Return the next patch version, i.e the smallest version strictly greater than the current one with empty :attr:`prerelease` and :attr:`build`. @@ -192,7 +192,7 @@ Representing a version (the Version class) :attr:`prerelease` component: it's the smallest "pure" patch version strictly greater than that version. - .. method:: truncate(self, level='patch']): + .. method:: truncate(self[, level='patch']) Returns a similar level, but truncated at the provided level.