Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[KERNEL] Fix grammar in a comment
[simgrid.git] / src / kernel / resource / Action.cpp
index 86f2e2a..1752c19 100644 (file)
@@ -149,14 +149,14 @@ void Action::cancel()
   }
 }
 
-int Action::unref()
+bool Action::unref()
 {
   refcount_--;
   if (not refcount_) {
     delete this;
-    return 1;
+    return true;
   }
-  return 0;
+  return false;
 }
 
 void Action::suspend()
@@ -196,7 +196,7 @@ bool Action::is_suspended()
 double Action::get_remains()
 {
   XBT_IN("(%p)", this);
-  /* update remains before return it */
+  /* update remains before returning it */
   if (get_model()->get_update_algorithm() == Model::UpdateAlgo::LAZY) /* update remains before return it */
     update_remains_lazy(surf_get_clock());
   XBT_OUT();