Skip to content

Commit

Permalink
Polish document and name of parameter (#1738)
Browse files Browse the repository at this point in the history
- doc: Fix a typo in description of booting options for sentinel-dashboard
- Fix mismatched name of parameter to its comment for VersionUtils.parseVersion()
  • Loading branch information
JieGz authored Sep 17, 2020
1 parent cc2d1a6 commit 55a8294
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ public final class VersionUtils {
/**
* Parse version of Sentinel from raw string.
*
* @param versionFull version string
* @param verStr version string
* @return parsed {@link SentinelVersion} if the version is valid; empty if
* there is something wrong with the format
*/
public static Optional<SentinelVersion> parseVersion(String s) {
if (StringUtil.isBlank(s)) {
public static Optional<SentinelVersion> parseVersion(String verStr) {
if (StringUtil.isBlank(verStr)) {
return Optional.empty();
}
try {
String versionFull = s;
String versionFull = verStr;
SentinelVersion version = new SentinelVersion();

// postfix
Expand Down

0 comments on commit 55a8294

Please sign in to comment.