Fix comments

This commit is contained in:
dkanus 2025-09-16 08:13:04 +07:00
commit d9923fd762
3 changed files with 8 additions and 8 deletions

View file

@ -75,7 +75,7 @@ fn main() {
let path = entry.path();
match fs::read(path) {
Ok(raw_bytes) => {
// Autodetect encoding for old Unreal script sources
// Auto-detect encoding for old Unreal script sources
let (encoding_label, _, _) = chardet::detect(&raw_bytes);
let encoding = encoding_rs::Encoding::for_label(encoding_label.as_bytes())
.unwrap_or(encoding_rs::UTF_8);
@ -109,7 +109,7 @@ fn main() {
elapsed_time
);
// Roundtrip check
// Round-trip check
for ((path, original), (_, tokenized_file)) in uc_files.iter().zip(tokenized_files.iter()) {
let reconstructed = tokenized_file.reconstruct_source();
if original != &reconstructed {