Skip to content

Commit 9ea3d13

Browse files
authored
Merge pull request #5014 from Rageking8/fix-stream-typos
Fix stream typos
2 parents b0178ff + 514c2bf commit 9ea3d13

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

docs/c-runtime-library/byte-and-wide-streams.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ description: "An overview of byte streams in the Microsoft C runtime library."
44
ms.date: "11/04/2016"
55
ms.topic: "conceptual"
66
helpviewer_keywords: ["byte streams", "wide streams"]
7-
ms.assetid: 61ef0587-4cbc-4eb8-aae5-4c298dbbc6f9
87
---
98
# Byte and wide streams
109

1110
A byte stream treats a file as a sequence of bytes. Within the program, the stream is the identical sequence of bytes.
1211

1312
By contrast, a wide stream treats a file as a sequence of generalized multibyte characters, which can have a broad range of encoding rules. (Text and binary files are still read and written as previously described.) Within the program, the stream looks like the corresponding sequence of wide characters. Conversions between the two representations occur within the Standard C Library. The conversion rules can, in principle, be altered by a call to [`setlocale`](./reference/setlocale-wsetlocale.md) that alters the category `LC_CTYPE`. Each wide stream determines its conversion rules at the time it becomes wide oriented, and retains these rules even if the category `LC_CTYPE` later changes.
1413

15-
Positioning within a wide stream suffers the same limitations as for text steams. Moreover, the file-position indicator may well have to deal with a state-dependent encoding. Typically, it includes both a byte offset within the stream and an object of type `mbstate_t`. Thus, the only reliable way to obtain a file position within a wide stream is by calling [`fgetpos`](./reference/fgetpos.md), and the only reliable way to restore a position obtained this way is by calling [`fsetpos`](./reference/fsetpos.md).
14+
Positioning within a wide stream suffers the same limitations as for text streams. Moreover, the file-position indicator may well have to deal with a state-dependent encoding. Typically, it includes both a byte offset within the stream and an object of type `mbstate_t`. Thus, the only reliable way to obtain a file position within a wide stream is by calling [`fgetpos`](./reference/fgetpos.md), and the only reliable way to restore a position obtained this way is by calling [`fsetpos`](./reference/fsetpos.md).
1615

1716
## See also
1817

docs/standard-library/bitset-operators.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
---
2-
description: "Learn more about: <bitset> operators"
32
title: "<bitset> operators"
3+
description: "Learn more about: <bitset> operators"
44
ms.date: "11/04/2016"
55
f1_keywords: ["bitset/std::operator&", "bitset/std::operator>>", "bitset/std::operator<<", "bitset/std::operator^", "bitset/std::operator|"]
6-
ms.assetid: 84fe6a13-6f6e-4cdc-bf8f-6f65ab1134d4
76
helpviewer_keywords: ["std::operator& (bitset)", "std::operator>> (bitset)", "std::operator<< (bitset)"]
87
---
98
# `<bitset>` operators
@@ -107,7 +106,7 @@ int main( )
107106
<< b1 << " )" << endl;
108107
109108
// Compare converting bitset to a string before
110-
// inserting it into the output steam
109+
// inserting it into the output stream
111110
string s1;
112111
s1 = b1.template to_string<char,
113112
char_traits<char>, allocator<char> >( );

0 commit comments

Comments
 (0)