File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Sources/SwiftParser/Lexer Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -249,11 +249,12 @@ extension UInt8 {
249
249
250
250
/// Allows direct comparisons between UInt8 and double quoted literals.
251
251
extension UInt8 {
252
- /// Basic equality operators
252
+ /// Equality operator
253
253
@_transparent
254
254
static func == ( i: Self , s: Unicode . Scalar ) -> Bool {
255
255
return i == UInt8 ( ascii: s)
256
256
}
257
+ /// Inequality operator
257
258
@_transparent
258
259
static func != ( i: Self , s: Unicode . Scalar ) -> Bool {
259
260
return i != UInt8 ( ascii: s)
@@ -266,11 +267,12 @@ extension UInt8 {
266
267
}
267
268
268
269
extension UInt8 ? {
269
- /// Basic equality operators
270
+ /// Equality operator
270
271
@_transparent
271
272
static func == ( i: Self , s: Unicode . Scalar ) -> Bool {
272
273
return i == UInt8 ( ascii: s)
273
274
}
275
+ /// Inequality operator
274
276
@_transparent
275
277
static func != ( i: Self , s: Unicode . Scalar ) -> Bool {
276
278
return i != UInt8 ( ascii: s)
You can’t perform that action at this time.
0 commit comments