Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into pch/doc_comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Pat Hickey committed Nov 7, 2019
2 parents 2884ffb + 8651dfa commit c84a40e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion phases/ephemeral/witx/wasi_ephemeral_preview.witx
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,9 @@
;;; Create a symbolic link.
;;; Note: This is similar to `symlinkat` in POSIX.
(@interface func (export "path_symlink")
(param $fd $fd_t)
;;; The contents of the symbolic link.
(param $old_path string)
(param $fd $fd_t)
;;; The destination path at which to create the symbolic link.
(param $new_path string)
(result $error $errno_t)
Expand Down
2 changes: 1 addition & 1 deletion phases/old/witx/wasi_unstable.witx
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,9 @@
;;; Create a symbolic link.
;;; Note: This is similar to `symlinkat` in POSIX.
(@interface func (export "path_symlink")
(param $fd $fd_t)
;;; The contents of the symbolic link.
(param $old_path string)
(param $fd $fd_t)
;;; The destination path at which to create the symbolic link.
(param $new_path string)
(result $error $errno_t)
Expand Down
2 changes: 1 addition & 1 deletion phases/unstable/witx/wasi_unstable_preview0.witx
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,9 @@
;;; Create a symbolic link.
;;; Note: This is similar to `symlinkat` in POSIX.
(@interface func (export "path_symlink")
(param $fd $fd_t)
;;; The contents of the symbolic link.
(param $old_path string)
(param $fd $fd_t)
;;; The destination path at which to create the symbolic link.
(param $new_path string)
(result $error $errno_t)
Expand Down
5 changes: 3 additions & 2 deletions tools/witx/src/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,11 @@ impl DocValidation {

impl DocValidationScope<'_> {
fn location(&self, span: wast::Span) -> Location {
// Wast Span gives 0-indexed lines and columns. Location is 1-indexed.
let (line, column) = span.linecol_in(self.text);
Location {
line,
column,
line: line + 1,
column: column + 1,
path: self.path.to_path_buf(),
}
}
Expand Down

0 comments on commit c84a40e

Please sign in to comment.