fix spelling
This commit is contained in:
@@ -310,7 +310,7 @@ impl MachineState {
|
||||
self.throw_interrupt_exception();
|
||||
self.backtrack();
|
||||
|
||||
// We have extracted controll over the Tokio runtime to the calling context for enabling library use case
|
||||
// We have extracted control over the Tokio runtime to the calling context for enabling library use case
|
||||
// (see https://github.com/mthom/scryer-prolog/pull/1880)
|
||||
// So we only have access to a runtime handle in here and can't shut it down.
|
||||
// Since I'm not aware of the consequences of deactivating this new code which came in while PR 1880
|
||||
|
||||
@@ -445,7 +445,7 @@ impl Index<usize> for ReservedHeapSection {
|
||||
|
||||
/// Computes the number of bytes required to pad a string of length `chunk_len`
|
||||
/// with zeroes, such that `chunk_len + pstr_sentinel_length(chunk_len)` is a
|
||||
/// multiple of `Heap::heap_cell_alignement()`.
|
||||
/// multiple of `Heap::heap_cell_alignment()`.
|
||||
fn pstr_sentinel_length(chunk_len: usize) -> usize {
|
||||
let res = chunk_len.next_multiple_of(ALIGN) - chunk_len;
|
||||
|
||||
|
||||
@@ -415,7 +415,7 @@ pub struct QueryState<'a> {
|
||||
|
||||
impl Drop for QueryState<'_> {
|
||||
fn drop(&mut self) {
|
||||
// FIXME: This may be wrong if the iterator is not fully consumend, but from testing it
|
||||
// FIXME: This may be wrong if the iterator is not fully consumed, but from testing it
|
||||
// seems fine. Is this really ok?
|
||||
self.machine.trust_me();
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ use crate::MachineBuilder;
|
||||
|
||||
#[test]
|
||||
#[cfg_attr(miri, ignore = "it takes too long to run")]
|
||||
fn programatic_query() {
|
||||
fn programmatic_query() {
|
||||
let mut machine = MachineBuilder::default().build();
|
||||
|
||||
machine.load_module_string(
|
||||
|
||||
@@ -191,7 +191,7 @@ impl Stack {
|
||||
let cell_ptr = new_ptr.add(offset).cast::<HeapCellValue>();
|
||||
ptr::write(cell_ptr.as_ptr(), stack_loc_as_cell!(AndFrame, e, idx + 1));
|
||||
|
||||
// Because in the Index and IndexMut inplementations we need to get this from
|
||||
// Because in the Index and IndexMut implementations we need to get this from
|
||||
// exposed provenance, we need to expose the provenance here, even though we don't
|
||||
// actually use the value for anything. This is a reminder that `expose_provenance`
|
||||
// isn't just a cast from a pointer to an integer but has actual side effects.
|
||||
@@ -224,7 +224,7 @@ impl Stack {
|
||||
let cell_ptr = new_ptr.byte_add(offset).cast::<HeapCellValue>();
|
||||
ptr::write(cell_ptr.as_ptr(), stack_loc_as_cell!(OrFrame, b, idx));
|
||||
|
||||
// Because in the Index and IndexMut inplementations we need to get this from
|
||||
// Because in the Index and IndexMut implementations we need to get this from
|
||||
// exposed provenance, we need to expose the provenance here, even though we don't
|
||||
// actually use the value for anything. This is a reminder that `expose_provenance`
|
||||
// isn't just a cast from a pointer to an integer but has actual side effects.
|
||||
|
||||
@@ -4292,7 +4292,7 @@ impl Machine {
|
||||
}
|
||||
let value = self.rng.gen_range(lower..upper);
|
||||
// Safety:
|
||||
// - lower and uper bounds are Fixnum values
|
||||
// - lower and upper bounds are Fixnum values
|
||||
// - value is inbetween lower and upper
|
||||
// - fixnums value range has no gaps
|
||||
// so value is also a valid Fixnum value
|
||||
@@ -4812,7 +4812,7 @@ impl Machine {
|
||||
if interruption {
|
||||
self.machine_st.throw_interrupt_exception();
|
||||
self.machine_st.backtrack();
|
||||
// We have extracted controll over the Tokio runtime to the calling context for enabling library use case
|
||||
// We have extracted control over the Tokio runtime to the calling context for enabling library use case
|
||||
// (see https://github.com/mthom/scryer-prolog/pull/1880)
|
||||
// So we only have access to a runtime handle in here and can't shut it down.
|
||||
// Since I'm not aware of the consequences of deactivating this new code which came in while PR 1880
|
||||
|
||||
Reference in New Issue
Block a user