Skip to content

Commit 58816d4

Browse files
correct text conjunction according to operator
1 parent ede37bd commit 58816d4

File tree

1 file changed

+1
-1
lines changed
  • builder/src/main/java/com/iluwatar/builder

1 file changed

+1
-1
lines changed

builder/src/main/java/com/iluwatar/builder/Hero.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static class Builder {
8181
/** Constructor. */
8282
public Builder(Profession profession, String name) {
8383
if (profession == null || name == null) {
84-
throw new IllegalArgumentException("profession and name can not be null");
84+
throw new IllegalArgumentException("profession or name can not be null");
8585
}
8686
this.profession = profession;
8787
this.name = name;

0 commit comments

Comments
 (0)