Skip to content

Commit

Permalink
[Truffle] More typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed May 27, 2015
1 parent 0460583 commit 196f43e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ public abstract class IOBufferPrimitiveNodes {
.createFactory();
}

public static void setWriteSynched(RubyBasicObject io, boolean writeSynched) {
public static void setWriteSynced(RubyBasicObject io, boolean writeSynced) {
assert io.getDynamicObject().getShape().hasProperty(WRITE_SYNCED_IDENTIFIER);

try {
WRITE_SYNCED_PROPERTY.set(io.getDynamicObject(), writeSynched, io.getDynamicObject().getShape());
WRITE_SYNCED_PROPERTY.set(io.getDynamicObject(), writeSynced, io.getDynamicObject().getShape());
} catch (IncompatibleLocationException | FinalLocationException e) {
throw new UnsupportedOperationException(e);
}
Expand Down Expand Up @@ -157,7 +157,7 @@ public IOBufferUnshiftPrimitiveNode(RubyContext context, SourceSection sourceSec

@Specialization
public int unshift(VirtualFrame frame, RubyBasicObject ioBuffer, RubyString string, int startPosition) {
setWriteSynched(ioBuffer, false);
setWriteSynced(ioBuffer, false);

int stringSize = string.getByteList().realSize() - startPosition;
final int usedSpace = getUsed(ioBuffer);
Expand Down

0 comments on commit 196f43e

Please sign in to comment.