Skip to content

Replace biconditional logical connective 'iff' with 'if'. #149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion snappy-sinksource.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class Source {
virtual size_t Available() const = 0;

// Peek at the next flat region of the source. Does not reposition
// the source. The returned region is empty iff Available()==0.
// the source. The returned region is empty if Available()==0.
//
// Returns a pointer to the beginning of the region and store its
// length in *len.
Expand Down
2 changes: 1 addition & 1 deletion snappy-stubs-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class Bits {
// Return floor(log2(n)) for positive integer n.
static int Log2FloorNonZero(uint32_t n);

// Return floor(log2(n)) for positive integer n. Returns -1 iff n == 0.
// Return floor(log2(n)) for positive integer n. Returns -1 if n == 0.
static int Log2Floor(uint32_t n);

// Return the first set least / most significant bit, 0-indexed. Returns an
Expand Down
2 changes: 1 addition & 1 deletion snappy-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ int ZLib::UncompressAtMost(Bytef *dest, uLongf *destLen,
// We make sure we've uncompressed everything, that is, the current
// uncompress stream is at a compressed-buffer-EOF boundary. In gzip
// mode, we also check the gzip footer to make sure we pass the gzip
// consistency checks. We RETURN true iff both types of checks pass.
// consistency checks. We RETURN true if both types of checks pass.
bool ZLib::UncompressChunkDone() {
assert(!first_chunk_ && uncomp_init_);
// Make sure we're at the end-of-compressed-data point. This means
Expand Down
2 changes: 1 addition & 1 deletion snappy-test.h
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ class ZLib {
// Checks gzip footer information, as needed. Mostly this just
// makes sure the checksums match. Whenever you call this, it
// will assume the last 8 bytes from the previous UncompressChunk
// call are the footer. Returns true iff everything looks ok.
// call are the footer. Returns true if everything looks ok.
bool UncompressChunkDone();

private:
Expand Down
2 changes: 1 addition & 1 deletion snappy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ class SnappyDecompressor {
reader_->Skip(peeked_);
}

// Returns true iff we have hit the end of the input without an error.
// Returns true if we have hit the end of the input without an error.
bool eof() const { return eof_; }

// Read the uncompressed length stored at the start of the compressed data.
Expand Down
4 changes: 2 additions & 2 deletions snappy.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,14 @@ namespace snappy {
bool GetUncompressedLength(const char* compressed, size_t compressed_length,
size_t* result);

// Returns true iff the contents of "compressed[]" can be uncompressed
// Returns true if the contents of "compressed" can be uncompressed
// successfully. Does not return the uncompressed data. Takes
// time proportional to compressed_length, but is usually at least
// a factor of four faster than actual decompression.
bool IsValidCompressedBuffer(const char* compressed,
size_t compressed_length);

// Returns true iff the contents of "compressed" can be uncompressed
// Returns true if the contents of "compressed" can be uncompressed
// successfully. Does not return the uncompressed data. Takes
// time proportional to *compressed length, but is usually at least
// a factor of four faster than actual decompression.
Expand Down