Skip to content

Commit 01fc5d5

Browse files
Update libc/src/__support/CPP/string.h
Co-authored-by: Copilot <[email protected]>
1 parent 89c1587 commit 01fc5d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/CPP/string.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class string {
114114
LIBC_INLINE constexpr const char &back() const LIBC_LIFETIMEBOUND {
115115
return data()[size_ - 1];
116116
}
117-
LIBC_INLINE char &back() { return data()[size_ - 1]; }
117+
LIBC_INLINE char &back() LIBC_LIFETIMEBOUND { return data()[size_ - 1]; }
118118

119119
LIBC_INLINE constexpr const char &
120120
operator[](size_t index) const LIBC_LIFETIMEBOUND {

0 commit comments

Comments
 (0)