We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb6ea9a commit e5e2f49Copy full SHA for e5e2f49
glib/src/date.rs
@@ -274,7 +274,7 @@ impl Date {
274
#[doc(alias = "g_date_subtract_days")]
275
pub fn subtract_days(&mut self, n_days: u32) -> Result<(), BoolError> {
276
let julian = self.julian();
277
- if julian > n_days {
+ if julian < n_days {
278
Err(bool_error!("invalid number of days"))
279
} else {
280
unsafe {
0 commit comments