Skip to content

Commit fe6c8bd

Browse files
Eelistkoeppe
authored andcommitted
[localization, diff] Remove superfluous 'return 0;' from 'main' in examples. (#1482)
1 parent 2080ad6 commit fe6c8bd

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

source/compatibility.tex

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,6 @@
11141114
delete i; // single-object delete
11151115
int* a = new int[3];
11161116
delete [] a; // array delete
1117-
return 0;
11181117
}
11191118
\end{codeblock}
11201119

@@ -1323,7 +1322,6 @@
13231322
int main() {
13241323
int flag = std::ios_base::hex;
13251324
std::cout.setf(flag); // error: \tcode{setf} does not take argument of type \tcode{int}
1326-
return 0;
13271325
}
13281326
\end{codeblock}
13291327

source/locales.tex

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5626,7 +5626,6 @@
56265626
wchar_t c = use_facet<wctype>(loc).widen('!');
56275627
if (!use_facet<My::JCtype>(loc).is_kanji(c))
56285628
cout << "no it isn't!" << endl;
5629-
return 0;
56305629
}
56315630
\end{codeblock}
56325631

@@ -5667,7 +5666,6 @@
56675666
locale loc(locale(""), new My::BoolNames(""));
56685667
cout.imbue(loc);
56695668
cout << boolalpha << "Any arguments today? " << (argc > 1) << endl;
5670-
return 0;
56715669
}
56725670
\end{codeblock}
56735671
\end{example}

0 commit comments

Comments
 (0)