Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from dtolnay:master #36

Merged
merged 11 commits into from
Feb 9, 2025
Prev Previous commit
Next Next commit
Format C++ code with clang-format 15
  • Loading branch information
dtolnay committed Feb 8, 2025
commit d33599d6ebfa55e906cb6ff7aff6d7ad39fd4b88
2 changes: 1 addition & 1 deletion book/src/binding/slice.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public:
Slice(T *, size_t count) noexcept;

template <typename C>
explicit Slice(C& c) : Slice(c.data(), c.size());
explicit Slice(C &c) : Slice(c.data(), c.size());

Slice &operator=(Slice<T> &&) noexcept;
Slice &operator=(const Slice<T> &) noexcept
Expand Down
2 changes: 1 addition & 1 deletion include/cxx.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class Slice final
Slice(T *, std::size_t count) noexcept;

template <typename C>
explicit Slice(C& c) : Slice(c.data(), c.size()) {}
explicit Slice(C &c) : Slice(c.data(), c.size()) {}

Slice &operator=(const Slice<T> &) &noexcept = default;
Slice &operator=(Slice<T> &&) &noexcept = default;
Expand Down