Skip to content

Commit

Permalink
馃洜 Remove unneeded argument checking
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePhD committed Mar 6, 2023
1 parent e14c878 commit 9a6d57a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions examples/documentation/quick/setup/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,11 @@

#include <ztd/text.hpp>

int main(int argc, char* argv[]) {
if (argc < 0)
return 0;

int main(int, char*[]) {
// overlong encoded null
// (https://ztdtext.rtfd.io/en/latest/api/encodings/mutf8.html)
const char mutf8_text[] = { 'm','e','o','w','\xc0','\x80','m','e','o','w','!' };
const char mutf8_text[]
= { 'm', 'e', 'o', 'w', '\xc0', '\x80', 'm', 'e', 'o', 'w', '!' };
const auto is_valid_mutf8_text
= ztd::text::validate_decodable_as(mutf8_text, ztd::text::compat_mutf8);

Expand Down

0 comments on commit 9a6d57a

Please sign in to comment.