Rename s/invalid/bad/ in "invalid call sequence"

This commit is contained in:
Nigel Tao committed 2018-08-26 21:20:25 +10:00
1 parent 814507e848
commit d4f7c263e3
4 files changed
+9 -10

No files matched your search

+2 -2
View File
@@ -117,7 +117,7 @@ pub struct decoder?(
pub func decoder.decode_image_config!??(dst nptr base.image_config, src base.io_reader) {
if this.call_sequence >= 1 {
return status "?invalid call sequence"
return status "?bad call sequence"
}
this.decode_header!??(src:args.src)
this.decode_lsd!??(src:args.src)
@@ -167,7 +167,7 @@ pub func decoder.work_buffer_size() base.range_ii_u64 {
pub func decoder.reset_for_decode_frame!??(fc ptr base.frame_config) {
if this.call_sequence == 0 {
return status "?invalid call sequence"
return status "?bad call sequence"
}
// TODO: change ~sat+ to + or change the semantics so that the io_position
// is before, not after, the frame config.