Skip to content

Commit

Permalink
Fixed properties needing to be Public
Browse files Browse the repository at this point in the history
  • Loading branch information
orchetect committed Jan 30, 2021
1 parent 056badd commit 896e876
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Sources/SwiftASCII/ASCIICharacter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ import Foundation
public struct ASCIICharacter: Hashable {

/// The ASCII character returned as a `Character`
@usableFromInline let characterValue: Character
public let characterValue: Character

/// The ASCII encoding value of this character
@usableFromInline let asciiValue: UInt8
public let asciiValue: UInt8

/// The ASCII character encoded as raw Data
@usableFromInline var rawData: Data {
public var rawData: Data {
Data([asciiValue])
}

Expand Down
4 changes: 2 additions & 2 deletions Sources/SwiftASCII/ASCIIString.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import Foundation
public struct ASCIIString: Equatable, Hashable {

/// The ASCII string returned as a `String`
@usableFromInline let stringValue: String
public let stringValue: String

/// The ASCII string encoded as raw Data
@usableFromInline let rawData: Data
public let rawData: Data

@inlinable public init?(exactly source: String) {

Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftASCIITests/ASCIICharacter Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#if !os(watchOS)

import XCTest
@testable import SwiftASCII
import SwiftASCII

class ASCIICharacterTests: XCTestCase {

Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftASCIITests/ASCIIString Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#if !os(watchOS)

import XCTest
@testable import SwiftASCII
import SwiftASCII

class ASCIIStringTests: XCTestCase {

Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftASCIITests/String Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#if !os(watchOS)

import XCTest
@testable import SwiftASCII
import SwiftASCII

class StringTests: XCTestCase {

Expand Down

0 comments on commit 896e876

Please sign in to comment.