Skip to content

Commit 5b04bd3

Browse files
committed
doc: minor bug in comment
1 parent ee8d9ed commit 5b04bd3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

util/api.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ int main() {
4141
root[2] = "two"; // [0, ~, two] # forces root[1] to be initialized to null
4242

4343
YAML::Value other = root; // both point to the same thing
44-
other[0] = 5; // now root[0] is 0 also
44+
other[0] = 5; // now root[0] is 5 also
4545
other.push_back(root); // &1 [5, ~, two, *1]
4646
other[3][0] = 0; // &1 [0, ~, two, *1] # since it's a true alias
4747
other.push_back(Copy(root)); // &1 [0, ~, two, *1, &2 [0, ~, two, *2]]

0 commit comments

Comments
 (0)