Use more inclusive language

This commit is contained in:
Nigel Tao committed 2021-01-23 19:50:47 +11:00
1 parent 07b5e017e1
commit 2f78804e62
46 files changed
+101 -101

No files matched your search

+2 -2
View File
@@ -98,7 +98,7 @@ fn main() {
}
fn decode(dst: &mut [u8], src: &[u8]) {
// Set up the hard-coded sanity check, executed below.
// Set up the hard-coded coherence check, executed below.
dst[0] = 0xFE;
dst[NUM_BYTES - 1] = 0xFE;
@@ -123,7 +123,7 @@ fn decode(dst: &mut [u8], src: &[u8]) {
panic!("wrong num_bytes")
}
// A hard-coded sanity check that we decoded the pixel data correctly.
// A hard-coded coherence check that we decoded the pixel data correctly.
if (dst[0] != FIRST_PIXEL) || (dst[NUM_BYTES - 1] != LAST_PIXEL) {
panic!("wrong dst pixels")
}
+1 -1
View File
@@ -101,7 +101,7 @@ func main1() error {
urlsChan <- u
}
close(urlsChan)
log.Printf("master: no more work (inlimit is %d)", *inlimitFlag)
log.Printf("controller: no more work (inlimit is %d)", *inlimitFlag)
wg.Wait()
return flush(global.manifest.m)
+2 -2
View File
@@ -110,7 +110,7 @@ func decode(filename string) error {
return fmt.Errorf("TODO: support gzip HCRC flag")
}
// As a sanity check, the result should be valid deflate.
// As a coherence check, the result should be valid deflate.
uncompressed, err := checkDeflate(src[i:])
if err != nil {
return err
@@ -161,7 +161,7 @@ func doWriteZlib(deflateCompressed []byte, uncompressed []byte, filename string)
asZlib := buf.Bytes()
// As a sanity check, the result should be valid zlib.
// As a coherence check, the result should be valid zlib.
if _, err := checkZlib(asZlib); err != nil {
return err
}
+2 -2
View File
@@ -38,8 +38,8 @@
#define WUFFS_IMPLEMENTATION
// Defining the WUFFS_CONFIG__MODULE* macros are optional, but it lets users of
// release/c/etc.c whitelist which parts of Wuffs to build. That file contains
// the entire Wuffs standard library, implementing a variety of codecs and file
// release/c/etc.c choose which parts of Wuffs to build. That file contains the
// entire Wuffs standard library, implementing a variety of codecs and file
// formats. Without this macro definition, an optimizing compiler or linker may
// very well discard Wuffs code for unused codecs, but listing the Wuffs
// modules we use makes that process explicit. Preprocessing means that such
+1 -1
View File
@@ -453,7 +453,7 @@ func (a *nAssignedCodes) fillPrimaryValues(primLen uint32) {
panic("did not finish with one unassigned zero-length code")
}
// As a sanity check of the "negative two's complement" theory, loop
// As a coherence check of the "negative two's complement" theory, loop
// forwards to calculate the number of unassigned primLen length codes,
// which should match nUnassignedPrimLen.
nUnassigned := uint32(1)
+2 -2
View File
@@ -74,8 +74,8 @@
#define WUFFS_IMPLEMENTATION
// Defining the WUFFS_CONFIG__MODULE* macros are optional, but it lets users of
// release/c/etc.c whitelist which parts of Wuffs to build. That file contains
// the entire Wuffs standard library, implementing a variety of codecs and file
// release/c/etc.c choose which parts of Wuffs to build. That file contains the
// entire Wuffs standard library, implementing a variety of codecs and file
// formats. Without this macro definition, an optimizing compiler or linker may
// very well discard Wuffs code for unused codecs, but listing the Wuffs
// modules we use makes that process explicit. Preprocessing means that such
+2 -2
View File
@@ -53,8 +53,8 @@
#define WUFFS_IMPLEMENTATION
// Defining the WUFFS_CONFIG__MODULE* macros are optional, but it lets users of
// release/c/etc.c whitelist which parts of Wuffs to build. That file contains
// the entire Wuffs standard library, implementing a variety of codecs and file
// release/c/etc.c choose which parts of Wuffs to build. That file contains the
// entire Wuffs standard library, implementing a variety of codecs and file
// formats. Without this macro definition, an optimizing compiler or linker may
// very well discard Wuffs code for unused codecs, but listing the Wuffs
// modules we use makes that process explicit. Preprocessing means that such