Page Chapter 2. Writing a Module, Page 13

Location on the page: 
Code section entitled 'Implementation of hook_menu'
Error: 

There is an error in the code for the 'annotate_menu()' function which can be compounded if an attempt is made to enable the Annotation module before many more functions are added to 'annotate.module'. The effect is that the desired menu entry 'Annotation settings' does not display.

Correction: 

The correct code for 'annotate_menu()' looks like this:

function annotate_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/settings/annotate',
'title' => t('Annotation settings'),
'description' => t('Change how annotations behave.'),
'callback' => 'drupal_get_form',
'callback arguments' => array('annotate_admin_settings'),
'access' => user_access('administer site configuration')
);
}
return $items;
}

However, the menu item it is supposed to create will not appear until the Annotate module is in a complete enough state for it to be safely enabled. So disable the module if you have enabled it and install the complete, corrected 'annotate.module' source code available from this site in place of the one copied from the book. Now enable the Annotate module and reload the page in your browser. The 'Annotation settings' menu item should appear.

Description of the Error: 

Menu entry 'Annotation settings' does not display