@@ -87,10 +87,11 @@ defimpl IEx.Info, for: List do
87
87
88
88
defp info_char_list ( char_list ) do
89
89
desc = """
90
- This is a list of integers that is printed as a sequence of codepoints
90
+ This is a list of integers that is printed as a sequence of characters
91
91
delimited by single quotes because all the integers in it represent valid
92
- ascii characters. Conventionally, such lists of integers are referred to as
93
- "char lists".
92
+ ASCII characters. Conventionally, such lists of integers are referred to as
93
+ "char lists" (more precisely, a char list is a list of Unicode codepoints,
94
+ and ASCII is a subset of Unicode).
94
95
"""
95
96
96
97
[ "Description": desc ,
@@ -129,7 +130,7 @@ defimpl IEx.Info, for: BitString do
129
130
defp info_string ( bitstring ) do
130
131
desc = """
131
132
This is a string: a UTF-8 encoded binary. It's printed surrounded by
132
- "double quotes" because all UTF-8 codepoints in it are printable.
133
+ "double quotes" because all UTF-8 encoded codepoints in it are printable.
133
134
"""
134
135
[ "Byte size": byte_size ( bitstring ) ,
135
136
"Description": desc ,
@@ -146,7 +147,7 @@ defimpl IEx.Info, for: BitString do
146
147
desc = """
147
148
This is a string: a UTF-8 encoded binary. It's printed with the `<<>>`
148
149
syntax (as opposed to double quotes) because it contains non-printable
149
- UTF-8 codepoints (the first non-printable codepoint being `#{ inspect first_non_printable } `)
150
+ UTF-8 encoded codepoints (the first non-printable codepoint being `#{ inspect first_non_printable } `)
150
151
"""
151
152
[ "Byte size": byte_size ( bitstring ) ,
152
153
"Description": desc ,
@@ -160,9 +161,9 @@ defimpl IEx.Info, for: BitString do
160
161
|> Enum . find ( fn cp -> not String . valid? ( cp ) end )
161
162
162
163
desc = """
163
- This is a binary: a bunch of bytes. It's printed with the `<<>>`
164
- syntax (as opposed to double quotes) because it contains non-valid
165
- UTF-8 codepoints (the first non-valid codepoint being `#{ inspect first_non_valid } `)
164
+ This is a binary: a collection of bytes. It's printed with the `<<>>`
165
+ syntax (as opposed to double quotes) because it is not a
166
+ UTF-8 encoded binary (the first invalid byte being `#{ inspect first_non_valid } `)
166
167
"""
167
168
168
169
[ "Byte size": byte_size ( bitstring ) ,
@@ -236,7 +237,7 @@ defimpl IEx.Info, for: PID do
236
237
end
237
238
238
239
[ "Data type": "PID" ] ++ extra ++
239
- [ "Description": "Use Process.info/1 for more info about this process" ,
240
+ [ "Description": "Use Process.info/1 to get more info about this process" ,
240
241
"Reference modules": "Process, Node" ]
241
242
end
242
243
0 commit comments