Rename x T to x: T for fields and func args

This commit is contained in:
Nigel Tao committed 2019-10-12 21:49:04 +11:00
1 parent 5b4e3647c0
commit 1520a1f345
15 files changed
+226 -216

No files matched your search

+3 -3
View File
@@ -14,11 +14,11 @@
// TODO: drop the '?' but still generate wuffs_adler32__hasher__initialize?
pub struct hasher?(
state base.u32,
started base.bool,
state : base.u32,
started : base.bool,
)
pub func hasher.update!(x slice base.u8) base.u32 {
pub func hasher.update!(x: slice base.u8) base.u32 {
// The Adler-32 checksum's magic 65521 and 5552 numbers are discussed in
// this package's README.md.