diff --git a/README.md b/README.md index 9362d67..6dbf330 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ int main() { node* my_node = new node(10); // Creates a node with value 10, and points to nothing auto my_other_node = new node(20); // Creates a node with value 20, and points to nothing - my_node->set_next(my_other_node); // Now `myNode` points to `myOtherNode` + my_node->set_next(my_other_node); // Now `my_node` points to `my_other_node` std::cout << my_node->get_next()->get_data() << "\n"; // Output is 20 auto copy_node = node(*my_node);