Skip to content

Commit

Permalink
Make hardware property of Register struct immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimcetin committed Nov 2, 2024
1 parent f2f3d4a commit 769db8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/LC3VMCore/Hardware.swift
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public struct Register {
public let type: RegisterType

/// The hardware that the register belongs to.
public private(set) var hardware: Hardware
public let hardware: Hardware

public init(type: RegisterType, hardware: Hardware) {
self.type = type
Expand Down

0 comments on commit 769db8f

Please sign in to comment.