Minor formatting fix

master
Nick Krichevsky 2020-12-02 01:36:13 -05:00
parent fcdb8533bf
commit 3001d681bd
1 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ const std::string DELIM = ": ";
* Policy represents a password policy * Policy represents a password policy
*/ */
class Policy { class Policy {
public: public:
Policy(int min, int max, char letter) : min(min), max(max), letter(letter) { Policy(int min, int max, char letter) : min(min), max(max), letter(letter) {
} }
@ -45,7 +45,7 @@ class Policy {
return this->letter; return this->letter;
} }
private: private:
int min; int min;
int max; int max;
char letter; char letter;
@ -63,7 +63,7 @@ std::vector<std::string> read_input(const std::string &filename) {
} }
class Entry { class Entry {
public: public:
Entry(Policy policy, std::string password) : policy(policy), password(password) { Entry(Policy policy, std::string password) : policy(policy), password(password) {
} }
@ -89,7 +89,7 @@ class Entry {
return this->password; return this->password;
} }
private: private:
Policy policy; Policy policy;
std::string password; std::string password;
}; };