Skip to content

Commit

Permalink
fix invalid name hiding
Browse files Browse the repository at this point in the history
  • Loading branch information
wx257osn2 authored Jan 12, 2023
1 parent eb4b7dd commit e3233e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reference/istream/basic_istream/read.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ Shinjuku
basic_istream<CharT, Traits>& read(char_type* s, streamsize n) {
iostate state = goodbit;
try {
sentry s(*this, true);
if (s) {
const sentry sent(*this, true);
if (sent) {
if (good()) {
for (streamsize i = 0; i < n; ++i) {
auto c = rdbuf()->sbumpc();
Expand Down

1 comment on commit e3233e7

@wx257osn2
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.