tangled
alpha
login
or
join now
besaid.zone
/
yap
learning rust do not look
0
fork
atom
overview
issues
pulls
pipelines
use bytes.len() instead of bytes.count()
besaid.zone
2 months ago
e7aa8f46
336c886b
verified
This commit was signed with the committer's
known signature
.
besaid.zone
SSH Key Fingerprint:
SHA256:Q4dc5PTI8DNTxJbH2bWsDeY6BXzfq0ce1XSA4H5Y3iI=
options
unified
split
Changed files
+1
-1
src
main.rs
+1
-1
src/main.rs
···
42
42
43
43
44
44
fn count_bytes(contents: &String) {
45
45
-
println!("{}", contents.bytes().count())
45
45
+
println!("{}", contents.bytes().len())
46
46
}
47
47
48
48
fn count_chars(contents: &String) {