Skip to content

Minor issue in docs #15

Description

@HenrikJStromberg

Chapter 1.5 of the docs contains the following listing:

assert_eq!( root.data(), &9 );

let root = tree.root_mut();
*root.data_mut() = 0;

However it is missing mutability for root in order to compile:

assert_eq!( root.data(), &9 );

let mut root = tree.root_mut();
*root.data_mut() = 0;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions