Skip to content

Commit

Permalink
minor comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Strilanc committed May 21, 2024
1 parent e13d3f0 commit 166212c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/stim/util_top/reference_sample_tree.cc
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ ReferenceSampleTree ReferenceSampleTree::simplified() const {
if (flat.empty()) {
return ReferenceSampleTree();
} else if (flat.size() == 1) {
return flat[0];
return std::move(flat[0]);
}

ReferenceSampleTree result;
Expand Down
2 changes: 1 addition & 1 deletion src/stim/util_top/reference_sample_tree.inl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ ReferenceSampleTree CompressedReferenceSampleHelper<W>::do_loop_with_tortoise_ha
}

if (hare_steps == reps) {
// No loop found.
// No periodic state found before reaching the end of the loop.
sim = std::move(hare.sim);
return result;
}
Expand Down

0 comments on commit 166212c

Please sign in to comment.