This commit is contained in:
2025-03-18 13:14:04 +03:00
parent 8076ef608a
commit ec0a6d523f
2 changed files with 2 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ auto main(int argc, char *argv[]) -> int
hack::log()(rb.get().value());
hack::log()(rb.size());
std::vector<int> v(3);
rb.peek(v, 3);
rb.get(v, 3);
hack::log()(v);
}

View File

@@ -76,7 +76,7 @@ namespace hack::patterns
return val;
}
void peek(std::vector<T>& d, int n)
void get(std::vector<T>& d, int n)
{
if (empty()) return;