From 01e7a9c2baafa3571aeff0070b2621d176bcfb96 Mon Sep 17 00:00:00 2001 From: Minh Vu Date: Sun, 18 Oct 2026 21:49:32 +0200 Subject: [PATCH] docs: clarify prerelease identifier base --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5e03abcc..dee1d92a 100644 --- a/README.md +++ b/README.md @@ -250,10 +250,9 @@ $ semver 1.2.4-beta.1 -i release #### Prerelease Identifier Base -The method `.inc` takes an optional parameter 'identifierBase' string -that will let you let your prerelease number as zero-based or one-based. -Set to `false` to omit the prerelease number altogether. -If you do not specify this parameter, it will default to zero-based. +The `.inc` method accepts an optional `identifierBase` argument. It can +start prerelease numbering at zero or one; set it to `false` to omit the +number. If omitted, it defaults to zero-based numbering. ```javascript semver.inc('1.2.3', 'prerelease', 'beta', '1')