Skip to content

Commit 89c1587

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

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
@@ -109,7 +109,7 @@ class string {
109109
LIBC_INLINE constexpr const char &front() const LIBC_LIFETIMEBOUND {
110110
return data()[0];
111111
}
112-
LIBC_INLINE char &front() { return data()[0]; }
112+
LIBC_INLINE char &front() LIBC_LIFETIMEBOUND { return data()[0]; }
113113

114114
LIBC_INLINE constexpr const char &back() const LIBC_LIFETIMEBOUND {
115115
return data()[size_ - 1];

0 commit comments

Comments
 (0)