Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

README is incorrect about what the sample code prints

未關閉
#74 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
1/5
預估耗時
1 小時以內
新手友好度
50/100
Issue 類型
文件
描述清晰度
描述清楚
活躍度
停滯
技術堆疊
rust
領域
documentation

研究方向

開啟 README,找到附加 "hello" 和 "world" 並列印 feed.get(0) 和 feed.get(1) 的 Rust 範例。將其文件中記載的輸出與此 issue 中顯示的輸出進行比較,然後更新 README,使範例和註解描述實際列印的值;確認範例文件保持一致。

由索引模型根據 Issue 內容生成。

描述

Bug Report

Your Environment

Software Version(s)
hypercore 0.9.0
Rustc rustc 1.35.0-nightly (237bf3244 2019-03-28)
Operating System Ubuntu 18.04

Expected Behavior

Program prints

hello
world

Current Behavior

Program prints

Ok(Some([104, 101, 108, 108, 111]))
Ok(Some([119, 111, 114, 108, 100]))

Code Sample

extern crate hypercore;

use hypercore::Feed;
use std::path::PathBuf;

let path = PathBuf::from("./my-first-dataset");
let mut feed = Feed::new(&path).unwrap();

feed.append(b"hello").unwrap();
feed.append(b"world").unwrap();

println!("{:?}", feed.get(0)); // prints "hello"
println!("{:?}", feed.get(1)); // prints "world"
主要語言
Rust
星號
357
分支
36
PR 合併指標
30 天內沒有已合併 PR

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

datrs/hypercore 的其他 Issue

查看 datrs/hypercore 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。