mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-16 19:54:38 +02:00
Merge pull request #2273 from felipemfp/patch-1
[c++/pt-br] Fix some typos
This commit is contained in:
@@ -490,7 +490,7 @@ bool doSomethingWithAFile(const char* filename)
|
|||||||
{
|
{
|
||||||
FILE* fh = fopen(filename, "r"); // Abra o arquivo em modo de leitura
|
FILE* fh = fopen(filename, "r"); // Abra o arquivo em modo de leitura
|
||||||
if (fh == nullptr) // O ponteiro retornado é nulo em caso de falha.
|
if (fh == nullptr) // O ponteiro retornado é nulo em caso de falha.
|
||||||
reuturn false; // Relate o fracasso para o chamador.
|
return false; // Relate o fracasso para o chamador.
|
||||||
|
|
||||||
// Suponha cada função retorne false, se falhar
|
// Suponha cada função retorne false, se falhar
|
||||||
if (!doSomethingWithTheFile(fh)) {
|
if (!doSomethingWithTheFile(fh)) {
|
||||||
@@ -511,7 +511,7 @@ bool doSomethingWithAFile(const char* filename)
|
|||||||
{
|
{
|
||||||
FILE* fh = fopen(filename, "r");
|
FILE* fh = fopen(filename, "r");
|
||||||
if (fh == nullptr)
|
if (fh == nullptr)
|
||||||
reuturn false;
|
return false;
|
||||||
|
|
||||||
if (!doSomethingWithTheFile(fh))
|
if (!doSomethingWithTheFile(fh))
|
||||||
goto failure;
|
goto failure;
|
||||||
|
Reference in New Issue
Block a user