How to trigger an event when node is saved?
The parameter passed to code had syntax error.

The correct code will be

function custom_node_update(Drupal\Core\Entity\EntityInterface $node) {
  // Logs a notice
  \Drupal::logger('custom')-&gt;notice("entity was updated");
}